The BSE benchmark index closed up 200 points at 16,839 and the Nifty gained 57 points at 5,100.
The gains were led by private banks, TCS, Infosys and Reliance Industries.
Earlier in the day, after a gap up opening, markets trimmed gains in the afternoon trades as the key European markets opened in the red. Also, profit booking in SBI and BHEL weighed on the indices.
Meanwhile, the broader markets corrected after initial gains.
The midcap and the smallcap indices lost nearly 1% each, underperforming the Sensex.
In Asia, markets jumped as a pledge from the European Central Bank to keep the euro zone intact and Samsung Electronics Co.'s record profit buoyed sentiment.
Hang Seng jumped 2%. Nikkei gained 1.5% while Kospi and Taiwan markets surged over 2% each.
European stocks and the euro fell on Friday as markets, hungry for detail on any ECB plan to repel a debt attack on Spain and Italy, grew cautious after Germany's Bundesbank restated its doubts about buying bonds of troubled euro zone nations.
CAC and FTSE were flat with a positive bias while DAX was down 0.2%.
Among the sectoral indices, BSE metal index was the top gainer, up 2% followed by FMCG, IT, Auto and consumer durables indices up around 1% each.
Bankex index closed for the day with 0.4% gain. However, shares of public sector undertaking banks were under pressure on the bourses after reporting weak set of financial numbers for the quarter ended June 2012 and asset quality concerns.
Union Bank of India plunged 8% to Rs 164 on reporting deterioration in asset quality in the June quarter. Punjab National Bank tanked 5.3% at Rs 715 after the bank said the gross NPA in June quarter went up to 3.34% from 2.93%
'Obama has fantastic working relation with Dr Singh'
Tata Power pays Rs 68.4 lakh as salary to Ratan Tata
HDFC Bank overtakes SBI as India's most valued bank
Internet TV's Savita Bhabhi turns 50 films old!
Dayanidhi Maran quizzed by CBI in Aircel-Maxis deal case