Earlier in the day, the Sensex touched a low of 16,046 amidst volatility as weakness persisted in interest rate sensitive stocks.
However, a recovery in the European markets and buying in oil and gas stocks helped the index to recover over 320 points and touch a high of 16,370.
The BSE benchmark finally ended at 16,342 -- up 200 points, while the Nifty ended up 53 points at 4,899.
In Europe, the CAC 40 index gained 1.4% at 3,060 and the FTSE was up 1.3% at 5,105.
European markets had dropped in intra-day trade as investors worried about the sluggish US economic outlook and Europe's festering debt crisis.
Going ahead, the investors would be looking towards Ben Bernanke's speech on monetary easing and a third round of quantitative easing on Friday.
If there is another round of quantitative easing, it may lead to a recovery in global markets, analysts reckon.
"It is difficult to take a call on the foreign institutional investor flows during the second half given the present global situation.
"Whether the third round of quantitative easing comes in or not and the form it takes will to an extent dictate fund flow in EM equities and commodity markets," said Amar Ambani, Head Research (India Private Clients), IIFL.
BSE oil & gas index recovered 3.5% from its lows of the day and ended at 8,357.
ONGC gained 4% at Rs 287.
Reliance was up 3.4% at Rs 756. Among other gainers were the oil marketing companies --
Ben Johnson in Goa, with Salgaocar hopefuls
NSE, BSE to become facilitators for SME
Allow export of wheat, rice and sugar, says Pawar
ITC bets on beverages, dairy to top FMCG pack
Ben Johnson's protýgýs for trials at Salgaocar