After bouncing around the breakeven for most of the day, stocks rallied into the early 1 p.m. ET close.
But economic numbers gave investors some reason for optimism. Jobs numbers were mostly better than expected, yet a weak manufacturing report raised concerns about economic growth.
U.S. markets will be closed Thursday in observance of Independence Day.
Preview to jobs Friday: Investors liked what the saw in the job numbers, mostly from the ADP's monthly figure on private-sector payrolls. These figures came in above expectations. First-time unemployment claims came in slightly below forecasts.
Still, investors are waiting for the big jobs numbers due out Friday. Economists surveyed by CNNMoney predict the U.S. economy added 155,000 jobs and the unemployment rate fell to 7.5% in June.
Europe... again?: Worries over the health of peripheral European countries once again caused global concerns.
Major European stock markets closed 1.3% lower, as investors worried that political turmoil in Portugal could re-ignite the region's debt crisis and a credit rating downgrade hit European banks. Asian markets also ended with losses.
"Portuguese political pandemonium continues today as austerity fatigue has led to the resignation of several key ministers and we could now be looking at the possibility of early elections," said Lee McDarby, head of corporate and institutional treasury dealing at Investec Bank.
Portugal's 10-year government bond yields hit 8% and the country's benchmark stock index shed more than 6% Wednesday after the finance minister stepped down and the foreign minister announced his resignation. Portuguese opposition parties are calling for an early election, though Prime Minister Pedro Passos Coelho insists he will not resign.
Credit rating agency Standard & Poor's downgraded three European banks -- Credit Suisse (, )Deutsche Bank ( and )Barclays ( --- citing worries over the size of their investment banking portfolios and the impact of new regulations. Shares of Credit Suisse and Deutsche Bank closed lower, while shares of Barclays ended up. )
The Obamacare fallout: The Obama administration's decision to delay implementing some parts of health care reform hit hospital stocks Wednesday. Shares of Tenet Healthcare (Fortune 500), , HCA Holdings (Fortune 500), , Community Health Systems (Fortune 500) and , Health Management Associates (Fortune 500) dropped between 2% and 4%. ,
|NJ agrees to ban Tesla direct sales|
|Obama wants to expand overtime pay|
|Inside the underground sex economy|
|Mt.Gox CEO's U.S. assets frozen|
|Bitcoin: taxes are the real reason it's doomed|
|Overnight Avg Rate||Latest||Change||Last Week|
|30 yr fixed||4.35%||4.32%|
|15 yr fixed||3.38%||3.33%|
|30 yr refi||4.37%||4.33%|
|15 yr refi||3.37%||3.35%|
Today's featured rates: