NEW YORK (May 17): Wall Street rallied sharply on Monday, juiced by a jump in Apple shares and gains from energy stocks that were backed by stronger oil prices.

Apple shares finished up 3.7% after Warren Buffett's Berkshire Hathaway reported a stake worth about US$1 billion ($1.37 billion) in the iPhone maker. The stock, which had lost about one-fifth of its value in the past month, gave the biggest boost to the three indexes.

The S&P energy sector gained 1.6% as oil prices hit six-month highs. Crude prices were supported by worries about global supply outages and as long-time bear Goldman Sachs sounded more positive on the market.

Oil prices have recovered some ground after touching 12-year lows earlier in 2016, with volatility in oil causing jitters in other markets.

“With oil prices being back up into that US$40 range, some of the downside that was associated with the energy market ... is more subdued at these current prices, or at least held at bay, and the ripple effects from that are also held at bay," said Jason Pride, director of investment strategy at Glenmede Investment and Wealth Management in Philadelphia.

The Dow Jones industrial average rose 175.39 points, or 1%, to 17,710.71, the S&P 500 gained 20.05 points, or 0.98%, to 2,066.66 and the Nasdaq Composite added 57.78 points, or 1.22%, to 4,775.46.

All 10 major S&P 500 sectors finished higher, led by materials and energy.

Last week, the Dow and S&P 500 fell for a third straight week, while the Nasdaq's losing streak hit four weeks.

"Oil is the catalyst, but the move today wouldn't have been this big if stocks had not been this weak lately," said Jim Paulsen, chief investment strategist at Wells Capital Management in Minneapolis.

Gloomy quarterly reports from retailers had clouded the market last week. The retail sector is in focus again, with Wal-Mart, Home Depot and Target set to report results this week.

The S&P 500 is up just over 1% this year. While the benchmark index has risen about 14% since February lows, the rally fizzled out in the last few weeks amid mixed corporate earnings and economic data.

On Monday, Anacor Pharmaceuticals soared 57.2% to US$100.67 after Pfizer said it would buy the drugmaker in a deal valued at US$5.2 billion. Anacor gave one of the biggest boosts to the Nasdaq Biotechnology index which gained 3%.

Tribune Publishing climbed 22.8% to US$14.08 after Gannett raised its buyout offer to US$15 per share. Gannett closed up 2.2% at US$15.98.

About 6.5 billion shares changed hands on US exchanges, below the 7.2 billion daily average for the past 20 trading days, according to Thomson Reuters data.

Advancing issues outnumbered declining ones on the NYSE by 2,318 to 699, for a 3.32-to-1 ratio on the upside; on the Nasdaq, 1,990 issues rose and 844 fell for a 2.36-to-1 ratio favoring advancers.

The S&P 500 posted 21 new 52-week highs and 3 new lows; the Nasdaq recorded 42 new highs and 66 new lows.