Gold rose in 2008 while the prices of commodities from oil to copper to grains fell drastically, but massive state spending to revive economies has sparked hopes for a recovery next year.
It was the year of the credit crunch, born out of the home mortgage crisis in the United States, spreading across the globe to curtail economic growth, decimate demand and spawn the biggest financial meltdown in some 80 years.
Gold, sought as a safe haven during times of risk, a hedge against inflation and for use in jewelry, rose on Wednesday and was one of the few commodities to finish higher year-on-year.
"Gold is the only (metal) that has been up this year," said Nick Moore, commodity strategist at RBS Global Banking & Markets. "It has been a fantastic performance for gold."
Bullion rose on Wednesday despite the strong dollar, which marked its first yearly gain against the euro since 2005. A firm dollar dulls gold's appeal as an alternative investment.
The greenback ended the year higher against most major currencies as a financial meltdown prompted investors to seek refuge in the dollar.
Spot gold was trading at $878.90/$881.85 an ounce, up from New York's notional close Tuesday of $868.40/$871.50.
Oil rallied more than 11 percent in a late surge tied to gains in gasoline and heating oil futures.
Crude also was supported by gains in the stock market, the failure to win a truce in the five-day battle between Israel and Hamas in the Gaza Strip and as Russia threatened to switch off gas supplies to its neighbor Ukraine on New Year's day.
European states depend on Russia for a quarter of their gas and most of it is shipped in pipelines that run across Ukraine's territory.
Weekly U.S. inventory data on Wednesday showed a decline in refinery activity and a rise of 500,000 barrels in crude stocks, compared with forecasts for a 1.5 million barrel drop.
"There's a sign that the industry might be cutting back on production rates to try to boost margins. As heating oil and gasoline prices are rallying, crude is tagging along," said Gene McGillian of Tradition Energy in Stamford, Connecticut.
U.S. crude settled $5.57, 14 percent, higher at $44.60 per barrel.
Oil, however, has tumbled from a record high above $147 set in July to below $40 as a global recession reduced demand. Oil was down 54 percent year-on-year.
Analysts in the latest Reuters poll forecast an average of $49 a barrel for U.S. crude in the first quarter, and an average $58.48 in 2009, pointing to a $10 recovery.