Stocks rose on Monday as higher oil prices lifted shares of energy companies and fund managers snapped up this quarter's winners to burnish their portfolios.

Energy shares ranked among the quarter's strong performers, and a 3.4 percent jump in the price of oil lifted them even further on Monday. Exxon Mobil Corp was the Dow's top driver, rising 2.2 percent to $70.58.

Fund managers are enhancing their portfolios before the quarter ends on Tuesday in a ritual known as window dressing by selling some of the quarter's losers and scooping up the winners. This move bolstered stocks as well.

This has been a heck of a run, said Marc Pado, U.S. market strategist at Cantor Fitzgerald & Co, in San Francisco. A lot of people didn't believe and left a lot at the table. Having the right positions (and) not showing a great deal of cash, that is really the main driving force here -- the so-called window dressing.

You can show you own the names that everyone knows did well, he said.

The S&P 500 is up 16.2 percent so far for the quarter, putting it on track for its best quarter since the fourth quarter of 1998, when the index jumped nearly 21 percent. The S&P 500 has gained 37 percent since hitting a 12-year closing low in early March as early signs of an economic rebound surfaced.

Financials were the day's top advancer and the leader for quarterly gains, followed by technology.

The Dow Jones industrial average <.DJI> gained 90.99 points, or 1.08 percent, to end at 8,529.38. The Standard & Poor's 500 Index <.SPX> was up 8.33 points, or 0.91 percent, at 927.23. The Nasdaq Composite Index <.IXIC> was up 5.84 points, or 0.32 percent, at 1,844.06.

The S&P financial sector <.GSPF> is up 36.6 percent in the last three months, while technology <.GSPT> is up 20.1 percent and energy <.GSPE> is up 10.9 percent.

Shares of home builders helped underpin the market on Monday after Credit Suisse raised its rating on KB Home , citing stronger orders and more attractive valuation. KB Home was up 5.1 percent at $14.11. The Dow Jones U.S. Home Construction Index <.DJUSHB> advanced 1.5 percent.

Wall Street's eyes and ears also were on the news coverage of Bernie Madoff, who was sentenced to 150 years in prison on Monday for running what prosecutors called a $65 billion Ponzi scheme. When Madoff's fraud was revealed last December, its scope was so brazen and so massive that it shocked investors and made everyone question their broker.

Signs of life in overseas markets added to Wall Street's positive mood.

Shanghai's benchmark stock index <.SSEC> reached a one-year closing high for the fourth straight session as signs of a Chinese economic recovery and ample liquidity boosted the market, improving investor sentiment.

Crude oil futures jumped $2.33 to settle at $71.49 per barrel after Nigerian militants said they attacked the country's oil facilities, which set off some concerns about supply.

For the day, the S&P energy index was up 1.3 percent, while Occidental Petroleum jumped 2.9 percent to $66.13.

On the Nasdaq, Microsoft Corp advanced 2.2 percent to $23.86 after Deutsche Bank raised its price target on the stock to $30 from $22.

Trading volume was below average on the New York Stock Exchange, with about 1.06 billion shares changing hands, far below last year's estimated daily average of 1.49 billion, while on the Nasdaq, about 2.04 billion shares traded, below last year's daily average of 2.28 billion.

Advancing stocks outnumbered declining ones on the NYSE by 3 to 2 while on the Nasdaq, the opposite trend prevailed, with about five stocks falling for every four that rose.

(Reporting by Caroline Valetkevitch; Editing by Jan Paschal)