Banks, with direct exposure to Greek debt, were among the biggest gainers. BNP Paribas and Societe Generale soared at least 14 per cent. Rio Tinto led resource companies higher, gaining 7.8 per cent.
On Wall Street, the Dow Jones Industrial Average gained 2.8 per cent and the Standard & Poor's 500 Index rose 2.6 per cent. Companies tied to economic growth including earthmoving equipment maker Caterpillar were among gainers.
"If we step away from the edge and avoid a recession, then there's no doubt there's value there," James Dunigan, chief investment officer at PNC Wealth Management, told Bloomberg.
Optimism that Greece will avoid default and prevent Europe's sovereign debt crisis from spreading saw German 10-year bunds rose 12 basis points to 1.95 per cent, a seven-week high. US Treasury bonds weakened, with the yield on the benchmark 10-year note climbing 11 basis points to 2.01 per cent, the first time in two weeks it has been above 2 per cent.
US shares also rose after the S&P/Case-Shiller index of property values fell a smaller-than-expected 4.1 per cent in July from a year earlier.
Yet the US economy has further to go. Consumer confidence stalled this month, as Americans complained it is getting harder to find a job. The Conference Board's sentiment index edged up to 45.4 in September from a 2 ½-year low of 45.2 in August.
Crude oil had its biggest gain in six weeks on optimism over Europe. Crude for November delivery gained 4.5 per cent to US$83.84 a barrel on the New York Mercantile Exchange. Gold for December delivery rose more than 4 per cent.
As confidence over Europe increased, the US dollar and the yen - seen as safe-haven currencies in times of global crisis - fell.
The euro traded at $1.362 from $1.353 yesterday. The yen weakened to 76.71 per dollar from 76.34.