Wall Street greeted a second Obama term the way it greeted the first.
Investors dumped stocks Wednesday in the sharpest sell-off of the year. With the election only hours behind them, they focused on big problems ahead in Washington, D.C., and across the Atlantic Ocean.
Frantic selling recalled the days after Obama's first victory, as the financial crisis raged and stocks spiraled downward.
Four years later, American voters returned a divided government to power and left investors fretting about a package of tax increases and government spending cuts that could stall the economic recovery unless Congress acts to stop it by Jan. 1.
In Europe, leaders warned that unemployment could remain high for years, and cut their forecasts for economic growth for this year and 2013. The head of the European Central Bank said not even powerhouse Germany is immune.
The Dow Jones industrial average plummeted as much as 369 points, or 2.8 percent, in the first two hours of trading. It recovered steadily in the afternoon, but slid into the close and ended down 313, its biggest point drop since this time last year.
"It does look ugly," said Robert Pavlik, chief market strategist at Banyan Partners LLC. He said it was hard to untangle the impact of Europe-related selling from nerves about the nation's fiscal uncertainty.
"It's a combination of all that, quite honestly," Pavlik said.
It was the worst day for stocks this year, but not the worst after an election. That distinction belongs to 2008, when Barack Obama was elected at the depths of the financial crisis. The Dow fell 486 points the next day.
This time, energy companies and bank stocks took some of the biggest losses. Both industries would have faced lighter, less costly regulation if Mitt Romney had won the election.
Stocks seen as benefiting from Obama's decisive re-election rose. They included hospitals, suddenly free of the threat that Romney would roll back Obama's health care law.
Obama was elected Nov. 4, 2008.
The Dow plunged more than 400 points on each of the next two trading days.
The blue-chip average hit bottom at 6,547 in March 2009, less than two months after Obama took office.
Then it doubled over the next three-plus years as the crisis eased and a fragile economic recovery took root.
Things were looking so good that until recently, some analysts were betting on when the market might hit an all-time high.
Of course, the market today is far less precarious than it was in 2008. The financial system has stabilized. Europe appears to be serious about tackling its debt crisis, despite frequent setbacks.
The housing market appears to be coming back, and the economy has added jobs for more than two and a half years.
On the day after the 28 other presidential elections since 1900, the stock market has gone up 13 times and down 15 times, according to research by Bespoke Investment Group, a market research company.
The best day-after performance was in 1900, another re-election. The Dow jumped more than 3 percent on the day after William McKinley won a second term, according to Bespoke.
With the 2012 election over, traders turned to Europe's increasingly sickly economy, dragged down by a debt crisis for more than three years. The 27-country European Union said unemployment there could remain high for years.
The European Commission, the executive arm of the EU, said that it expects the region's economic output to shrink 0.3 percent this year. In the spring, the group predicted no change.
For next year, the commission predicted 0.4 percent growth, barely above recession territory. It predicted 1.3 percent last spring.
Renewed focus on European economic problems also pushed the price of oil down $4.27 per barrel, its biggest decline of the year, to finish at $84.44, the lowest since July 10.
The Dow closed down 312.95 points, or 2.4 percent, at 12,932.73 — its first close below 13,000 since Aug. 2.
The Standard & Poor's 500 index fell 33.86 points, or 2.4 percent, to 1,394. That was the broader index's first close below 1,400 since Aug. 30.
The NASDAQ composite index lost 74.64 points, or 2.5 percent, to 2.937.29.
U.S. stock futures had risen overnight after Obama cruised to victory. They turned sharply lower after the European forecasts and discouraging comments from Mario Draghi, president of the European Central Bank.
Now that the U.S. election has been resolved, it's natural for traders to focus on Europe's problems, said Peter Tchir, who manages the hedge fund TF Market Advisors.
What they're tuning in to, he said, is the failure of a major European summit last week and minimal progress on the issues that are holding the region back.
"People can only digest one or two stories at a time, and people had put Europe on the back burner" before the election, he said.
Obama's win followed a costly campaign that blanketed markets with uncertainty about possible changes to tax rates, government spending and other issues seen as crucial to the prospects of some industries and the broader economy.
As jitters about the election subsided, traders confronted an ugly reality: The so-called fiscal cliff, which will impose automatic tax increases and deep cuts to government spending at the end of the year unless the president and Congress reach a deal.
That's no easy task for a deadlocked government whose overall composition has barely changed — a Democratic president and Senate and a Republican House.
If Congress and the White House don't reach a deal, the spending cuts and tax increases could total $800 billion next year. Some economists say that could push the economy back into recession.
"Obama's re-election does not change the bigger economic or fiscal picture," Paul Ashworth of Capital Economics, an economic research company, said in a note to clients.
Fitch Ratings offered a warning Wednesday about the perils facing the U.S. If Obama does not quickly forge agreement with Congress to avert the fiscal cliff, the credit rating agency said, it may strip the U.S. of its sterling AAA credit rating.
The government's failure to come up with a plan to reduce the deficit led Standard & Poor's to cut its rating of long-term U.S. Treasury securities last year from a sterling AAA to AA+. It was the first-ever downgrade of U.S. government debt.
Tobias Levkovich, a financial analyst at Citi Research, told clients Wednesday that a compromise on taxes and spending was likely in mid- to late January, but that stocks will probably fall in the meantime.
A deal early next year is much more likely "once the political class begins to negotiate realistically and as the consequences ... are too costly for either party to ignore," he wrote.
European markets closed sharply lower, with benchmark indexes in France and Germany losing 2 percent. Italy lost 2.5 percent; Spain lost 2.3 percent.
As traders streamed into lower-risk investments, the yield on the 10-year Treasury note plunged to 1.64 percent from 1.75 percent late Tuesday. A bond's yield declines as demand for it increases.
Most industries reacted to the election much as analysts had expected.
Big, publicly traded hospital companies soared because of expectations that they will gain business under the health care law, known as ObamaCare. HCA Holdings leapt 9.4 percent, Tenet Healthcare 9.6 percent, Community Health Systems 6 percent and Universal Health Services 4.3 percent.
Not all hospital companies are expected to benefit. Many serve patients who will be covered by Medicaid plans that generally do not cover the full cost of care provided by hospitals.
Health insurance stocks sank, defying many analysts' expectations. ObamaCare will expand coverage of the uninsured in 2014, giving insurers millions of new customers. But the overhaul also imposes fees and restrictions on the companies, potentially threatening their profitability. Humana slid 7.9 percent, UnitedHealth Group 3.8 percent, Aetna 4.2 percent and Wellpoint 5.5 percent.
With Obama seeking to restrain the growth of military spending, defense companies could struggle to win government contracts. Their stocks fell sharply: Lockheed Martin lost 3.9 percent, Northrop Grumman 4.6 percent and General Dynamics 3.9 percent.
Among the 10 industry groups in the S&P 500 index, financial stocks and energy companies fell the most.
Banks figure to face tougher regulation in a second Obama term than they would have under Romney. JPMorgan Chase fell 5.6 percent, Citigroup 6.3 percent, Bank of America 7.1 percent, Goldman Sachs 6.6 percent and Morgan Stanley 8.6 percent.
The biggest losers were coal companies, which had hoped that a Romney administration would loosen mine safety and pollution rules that make it more costly for them to operate. Peabody Energy dived 9.6 percent, Consol Energy 6.1 percent, Alpha Natural Resources 12.2 percent and Arch Coal 12.5 percent.
Oil companies fell less steeply.
Trading also reflected the outcome of ballot measures decided in Tuesday's election. After two states approved the recreational use of marijuana for the first time, Medical Marijuana Inc., a company too small to be listed on major exchanges, surged 22 percent.
Other notable moves included Apple, the world's most valuable company. It fell 3.8 percent to $558.00 and has dropped 20 percent from its all-time high of $705.07, reached Sept. 21.