At 4:15 pm, the Nifty was over 100 points while buying across the sectors pushed Sensex above the 17,000 mark.
Technology, banking and oil & gas exploration were the front liners.
August IIP (Index of Industrial Production) in double digit and Anil Ambani's attempt to reconcile helped the markets throughout the session.
The BSE Sensex closed at 17,026.67 and the Nifty ended at 5,054.25.
Nifty at 5k; SBI, TCS, Maruti aid
At 13:48PM, the Nifty traded above the 5,000 mark with aid from buying in oil & gas exploration, technology, FMCG, banking, realty and metal stocks.
Largecaps, TCS, SBI, Bharti Airtel, Reliance Infrastructure, Maruti Suzuki and Tata Communication rose from 2 to 3.5 per cent.
In the midcap space, M&M Financial, Gammon India, Blue Star, Kirloskar Oil and REI Six Ten gained 5 to 9 per cent while EIH, Mcleod Russel, Indiabulls Real, Sintex India and Federal Bank dipped by 2 to 4.7 per cent.
In the smallcap space, Gokul Refoils, ISMT, SREI Infra, Sagar Cement and Timken rose by 6 to 11.7 per cent.
However, Suashish Diamon, Jindal Worldwid, Lloyds Metals, Vikas WSP and PVP Ventures dropped from 5 to 7.5 per cent.
Reliance, tech push Nifty to 5k
At 12:00 PM, buying in technology, telecom, oil & gas exploration, realty, select banking and power stocks raised Nifty up towards the 5,000 mark with the all sectoral indices being green.
In the ADAG (Anil Dhirubhai Ambani Group) pack, RNRL increased by 5 per cent, Reliance Infrastructure increased by 3 per cent while Reliance Power, Reliance Communication and Reliance Capital gained over 1.5 per cent.
Mukesh Ambani Group companies like Reliance Industries increased by 1.5 per cent and Reliance Industrial Infrastructure shot up by 1.8 per cent.
Meanwhile, each of TCS, Wipro, Infosys and HCL Tech gained 1.5 per cent.
Among other largecaps, SBI, ONGC, Bharti, DLF and Maruti increased by 1 to 2 per cent.
However, Hero Honda, GAIL, HDFC Bank, Tata Power and Tata Motors lost.
Anil Ambani's effort to reconcile raises RIL
At 9:56 am, with Anil Ambani's effort to reconcile with big brother Mukesh, Reliance Industries, Reliance Communication, Infosys, Reliance Infrastructure, Reliance Power made a good start with the Sensex up at 16,72.
Infosys, Bharti Airtel, Wipro, TCS, RNRL, DLF and Tata Motors, Hotel Leela, GIC Housing and Indian Hotels were the gainers.
However, ITC, HDFC Bank, HUL, Ranbaxy Labs and Hero Honda lost.
Exide Industries rose by 4 per cent.
Vishal Retail increased by 6 per cent after seeing selling pressure in the last few sessions.
Indiabulls Retail dipped by 1.5 on the first day of subscription of Indiabulls Power IPO.