The Dow Jones Industrial Average finished up almost 1,100 points, or about five per cent, at 22,878.45.
Wall Street notched its best day in 10 years as stocks rallied back Wednesday, giving some post-Christmas hope to a market that has otherwise been battered this December.
Energy stocks gained the most as oil prices notched their biggest gain in more than two years.
Concerns about the economic growth outlook, the U.S.
But even with the rally, the market remains on track for its worst December since 1931, during the depths of the Depression, and could finish 2018 with its steepest losses in a decade.
Global investors already had a laundry list of worries, including China's slowing economy, the Trump administration's trade war with China and the unpredictability surrounding Brexit. Shares of Wayfair, Kohl's and Dollar General all rose at more than 6 percent.
The Dow closed nearly 5 percent higher, recovering some of its losses from a four-day selloff.
If Wednesday's gains do not hold and slip away in the next three trading days, US stocks could still have their worst December ever. Amazon slid 4 percent to $1,412.48.
The gains were led by technology stocks.SPLRCT, which rose 1.49 percent. Beazer Homes USA dropped 1.1 per cent.
Investors are not relieved by the strong performance of the Dow Jones on the day because of the unusual volatility US markets have demonstrated in the past several weeks and with the Dow Jones still at risk of plunging into a bear market, the tension of most investors is likely to extend across the first quarter of 2019. -China trade dispute and rising interest rates have dogged stocks since the end of summer, and the major indexes are still down more than 10 percent this month alone, with three more trading days left in the year. (NASDAQ: AMZN) in percentage terms.
US stocks rose modestly on Wednesday, boosted by technology shares and an Amazon-led jump in retailers, helping pull the S&P 500 from the brink of bear market territory following punishing few sessions.
Gains for the sector seem to have been helped on news that holiday sales increased 5.1 percent year over year to more than $850 billion this year. Noble Energy slid 4.1 percent to $18.31. He added that the recent plummeting stock market "is a buyer's strike due to lack of confidence in policymakers around the world".
The Federal Reserve's decision to boost interest rates, concerns about slower global growth, and a partial USA government shutdown have caused unease among investors, leading to a sharp drop in US stock prices.
Asian markets closed mostly lower Wednesday after Mr. Trump said on Tuesday that there was "nothing new" on the partial government shutdown over a U.S. -Mexico border wall that started Saturday and shows no signs of abating. Bank of America, JPMorgan and Goldman Sachs slipped more than 1 percent as the yield on the the 10-year Treasury fell to 2.76 percent from 2.79 percent. Copper gained 1.5 percent to $2.70 a pound.
In Europe, the benchmark Euro Stoxx 50 lost 1.1%.
European markets were also mixed, with Frankfurt's DAX showing a small gain, while the FTSE 100 (London) and the CAC 40 (Paris) moved lower.