Europe's broad Stoxx 600 index rallied 1.4 percent. The Dow Jones Industrial Average rose 443.86 points, or 1.74 percent, to 25,883.25, the S&P 500 gained 29.87 points, or 1.09 percent, to 2,775.6 and the Nasdaq Composite added 45.46 points, or 0.61 percent, to 7,472.41.
China and the United States reached a consensus in principle on some key issues during the talks, China's state news agency Xinhua said on Friday. Negotiations will continue next week in Washington as investors hope for an end to the trade war between the world's two largest economies.
"The next potential steps in the U.S. protectionist push could be pivotal for the global outlook," Bank of America Merrill Lynch economists wrote in a note. "With the trade war already starting to hurt the U.S., we expect the Trump Administration to pull its punch."
MSCI's gauge of stocks across the globe gained 0.82 percent. The index is up nearly 10 percent for the year.
Emerging markets were set for their first back-to-back weekly loss since late last year. The MSCIEF index of emerging- market stocks dropped 0.7 percent, leaving it up approximately 7.6 percent for the year.
Though there were signs of progress in the trade discussions, some investors remained cautious on whether tariffs would soon be eliminated.
"We expect that the longer-term direction of tariffs on imports from China is likely to be downward, but we expect this to be a gradual process and believe that some of the recently imposed tariffs might still be in effect through the 2020 election," economists at Goldman Sachs wrote in a note.
The broad stock rallies helped pull investors out of the safety of government bonds, sending yields higher. Benchmark 10-year U.S. Treasury notes last fell 1/32 in price to yield 2.6626 percent, from 2.659 percent late on Thursday.
U.S. President Donald Trump signed a bill Friday that prevented another partial federal government shutdown by funding several agencies that otherwise would have closed on Saturday morning.
The dollar index fell 0.11 percent, with the euro down 0.05 percent to $1.1293.
Crude oil reached 2019 highs above $65 per barrel after OPEC-led supply cuts and a bigger-than-expected cut by Saudi Arabia this week encouraged investors.
The global Brent benchmark gained 2.2 percent to $66.01 per barrel. It has risen over 4.5 percent this week.
U.S. crude rose 2.1 percent to $55.58 per barrel.
Global assets in 2018 http://tmsnrt.rs/2jvdmXl
Global currencies vs. dollar http://tmsnrt.rs/2egbfVh
Emerging markets in 2018 http://tmsnrt.rs/2ihRugV
MSCI All Country Wolrd Index Market Cap http://tmsnrt.rs/2EmTD6j
(Reporting by David Randall; Editing by Dan Grebler, Susan Thomas and Diane Craft)
By David Randall