Broad S&P 500 index closed at a plus of 3.3 percent, Dow Jones industrial index rose 2.8 percent, and technology-heavy Nasdaq composite index closed up 4.4 percent.
The US Finance Minister Scott Bessent announced earlier on Monday that the talks with China had been "very productive" and that the countries had agreed to cut their respective tariffs by 115 percentage units over a 90-day period.
The markets are rising because investors are surprised by the speed of the tariff agreement with China, says Jeff Kilburg at the asset manager KKM Financial to CNBC.
Large companies dependent on manufacturing in or goods from China, such as Amazon, Apple and Tesla, were among the winners with increases between 5.8 and 7.8 percent.
Among the losers were Swedish Match owner Philip Morris, minus 3 percent, and streaming giant Netflix, minus 2.8 percent.
Gold, which has risen steadily since Trump began his trade war in early April, fell 2.7 percent. An ounce (31.1 grams) of gold now costs 3,235 dollars.