Strong cues from Asian markets and sustained buying by foreign investors, helped the markets to trade in green. After a firm opening, the Sensex touched its highest in two months, at 18,715.
The index finally ended near its high at 18,694 - up 201 points. NSE Nifty extended its rally and ended at 5,600 - up 55 points.
The NSE index has gained as much as 6% in the last five days.
The broader markets gained in line with the benchmark - up 0.8% each. While the mid-cap index was at 6,835, the small-cap index ended at 8,109.
Foreign Institutional investors turned buyers last week and has bought shares worth Rs 3,296.4 crore since June 23.
"Given the current scenario, we observe that there has been delivery based buying across counters. The selling in index Futures is partially due to hedging activity and some profit booking," said Shshank Mehta, Derivatives Strategist, Nirmal Bang.
Global markets were in the green ahead of the Greek Parliament's decision on austerity measures.
Greece is required to cut down on spending before recieving its next round of assistance funds.
Nikkei added 1.5% to 9,797. Taiwan, Seoul and Straits markets also went up 1% each. However, Hang Seng was flat at 22,061.
Metal stocks moved up, mirroring gains in the London Metal exchange. BSE metal index jumped 1.5% to 14,986. Jindal Saw surged 5.5% to Rs 158. Sterlite, Welcorp, Tata Steel, Sesa Goa and Hindustan Zinc advanced 2-3% each.
Market heavyweight, Reliance, gained 1.7% at Rs 885 after the recent sell off.
The stock had dropped to its 52-week low of Rs 829 a little more than a week ago after the Comptroller and Auditor General of India questioned the decision of the oil ministry to allow RIL to raise the development cost of RIL's KG-D6