Investors extended a rally through a holiday-shortened day and pushed major stock indexes to record highs on Wednesday.
The Dow Jones industrial average notched its first record since October and the S&P 500 index had its third straight record high close.
The rally follows a slight easing of trade tensions between the U.S. and China. Both nations have agreed to refrain from new tariffs while they open a new round of negotiations. The development relieved some pressure on the market, though the trade war still looms over global economic growth.
The S&P 500 rose 22.81 points, or 0.8%, to close at 2,995.82. The Dow Jones industrial average gained 179.32 points, or 0.7%, to close at 26,966.
Technology stocks led the gains, helping the tech-heavy NASDAQ composite join the record-breaking club. The NASDAQ rose 61.14 points, or 0.8%, to 8,170.23.
"Clearly the trade truce with China has been a catalyst for the market even though there remain uncertainties," said Quincy Krosby, chief market strategist at Prudential Financial.
Technology companies, which tend to do a lot of business with China, have been particularly sensitive to the trade war between the U.S. and China. The sector has been broadly higher this week.
Cybersecurity software company Symantec surged 13.6% and did much of the heavy lifting on Wednesday as media reports suggest it is considering a sale to chipmaker Broadcom. Microsoft and Apple also made gains.
A broad mix of health care companies lifted that sector. Johnson & Johnson rose 1.5% and Merck rose 1.6%.
Communications and internet companies were also among the biggest gainers, with strong pushes from Facebook and Netflix.
Tesla rose 4.6% after telling investors that it delivered more electric cars in the second quarter than any three-month period in its history. The upbeat trading comes as the electric car maker struggles to meet production promises and to consistently make money.
Every sector in the S&P 500 made gains.
The records are adding to a yearlong rally. The S&P 500 is up more than 19% so far, while the Dow is up more than 15%. The NASDAQ is now up 23% for the year.
The market will be closed Thursday for the Independence Day holiday.
Investors will be on the lookout for the government's closely watched monthly jobs report scheduled for Friday. The results of that report will likely be a factor in the Federal Reserve's meeting later this month. The central bank has already said it is prepared to cut rates to shore up the U.S. economy if trade disputes crimp growth.
"The market is going to expect a rate cut if there is a weak report," Krosby said.
The yield on the 10-year Treasury note fell to 1.95% from 1.97% Tuesday.
In commodities trading, benchmark crude oil rose $1.09 to settle at $57.34 a barrel. Brent crude, the international standard, rose $1.42 to close at $63.82 a barrel.
Wholesale gasoline rose 5 cents to $1.92 per gallon. Heating oil rose 1 cent to $1.90 per gallon. Natural gas added 5 cents to $2.29 per 1,000 cubic feet.