(Updates to market close)
* S&P 500, Nasdaq close at record highs, Nasdaq breaches 8,000
* U.S., Mexico reach trade deal; Canada talks imminent
* Industrials, materials, financials post gains
* Tesla slides after scrapping plan to go private
* Indexes up: Dow 1.01 pct, S&P 0.77 pct, Nasdaq 0.91 pct
By Stephen Culp
Aug 27 (Reuters) - A broad-based rally pushed the S&P 500 and the Nasdaq to record-high closes for the second straight session on Monday as a trade agreement reached between the United States and Mexico buoyed investor sentiment.
Technology stocks led the Nasdaq above the 8,000 mark for the first time and the sector provided the biggest boost to the S&P 500.
A senior U.S. trade official announced a deal with Mexico to replace the North American Trade Agreement and said talks with Canada were expected to begin immediately.
The upbeat trade outlook was further boosted by news that Washington was pressuring the European Union to accelerate tariff talks.
Disputes between the United States and its trading partners have been a drag on investor sentiment for much of the year despite solid economic fundamentals and two robust quarters of corporate earnings.
"It takes a long time for people to come out of the concerns related to those thousand-point down days and feel a little bit more comfortable," said Robert Pavlik, chief investment strategist at SlateStone Wealth LLC in New York. "And the trade concerns and the tariffs, that played a part in it, that's what held it back.
"People are feeling a little bit more positive," Pavlik added.
Matt Blunt, president of the American Automotive Policy Council, said he was optimistic about the trade deal. Shares of Ford Motor Co were up 3.2 percent while General Motors rose 4.8 percent.
Tariff-sensitive companies Boeing Co and Caterpillar Inc were up 1.2 percent and 2.8 percent, respectively, leading the industrial sector's advance and pulling the Dow higher.
The Mexico-focused iShares MSCI Mexico ETF was up 2.1 percent.
The Dow Jones Industrial Average rose 259.29 points, or 1.01 percent, to 26,049.64, the S&P 500 gained 22.05 points, or 0.77 percent, to 2,896.74 and the Nasdaq Composite added 71.92 points, or 0.91 percent, to 8,017.90.
Of the 11 major sectors of the S&P 500, nine ended the session in positive territory, with the biggest percentage gains in materials, financials and industrials .
Defensive utilities and real estate sectors were the only percentage losers.
Tesla Inc stock dipped 1.1 percent, paring earlier losses following news that Chief Executive Elon Musk was scrapping his scheme to take the electric automaker private.
Chipotle Mexican Grill was the biggest percentage loser in the S&P 500, down 4.8 percent after Wedbush downgraded the burrito chain's shares.
Luxury retailer Tiffany & Co ended the session down 1.3 percent ahead of its second-quarter earnings report expected early on Tuesday.
Advancing issues outnumbered declining ones on the NYSE by a 1.80-to-1 ratio; on Nasdaq, a 1.29-to-1 ratio favored advancers.
The S&P 500 posted 54 new 52-week highs and no new lows; the Nasdaq Composite recorded 159 new highs and 31 new lows.
Volume on U.S. exchanges was 6.19 billion shares, compared with the 6.27 billion average over the last 20 trading days. (Reporting by Stephen Culp; Editing by Dan Grebler)