Stocks rebound on Europe hopes

NEW YORK (CNNMoney) -- A plunge in Facebook's stock didn't faze the broader U.S. market Monday. U.S. stocks bounced back from their worst week of the year on renewed optimism that European leaders would find a way out of the sovereign debt crisis.

The Dow posted its biggest gain in over a month, while the S&P 500 delivered its best performance in over two months. The tech-heavy Nasdaq enjoyed its best gains of the year.

"I think it's just more of a relief rally after being down so many sessions in a row," said Dave Rovelli, managing director at Canaccord Adams. "People are looking for stocks that have sold off a bit."

Over the weekend, the Group of Eight nations met and reaffirmed their commitment to keeping Greece in the eurozone. And two opinion polls released in Greece reportedly put the pro-bailout New Democracy party ahead of the anti-austerity Syriza party.

The combination of the G8 and the poll results was enough to boost sentiment across world markets, with European and Asian stocks eking out gains and the euro holding steady at around $1.28 against the U.S. dollar.

Paul Zemsky, head of asset strategies for ING Investment Management, said the rally was the result of "a smidgen of good news in an oversold market."

"You had a tremendous amount of pessimism, but nothing bad came out of Greece this weekend," he said. "There's some optimism that perhaps the Greek people are realizing how damaging it would be for them to leave [the eurozone]."

But trading might be choppy this week as worries about Europe will continue to dominate. Elisabeth Afseth, a fixed income analyst with Investec in London, said the weeks leading up to Greece's June 17 election are likely to be volatile for both equity and bond markets.

An informal summit of European leaders is scheduled for Wednesday.

Despite Thursday's bounce, stocks are still down considerably in May, on track for the worst monthly losses since September. The Dow has finished in the red on all but three of the 15 trading days this month.

The blue chip index and the S&P 500 are off more than 5% in May, while the Nasdaq is more than 6% lower.

U.S. stocks closed lower Friday, after the euphoria surrounding Facebook's Friday IPO had worn off. All three indexes clocked their worst weekly losses of the year last week.