Mumbai Benchmark Sensex crossed the all-time mark of 79,000, while Nifty scaled the all-time peak of 24,000 for the first time on Thursday, as buying in blue-chip stocks like Infosys, Reliance and TCS helped markets extend gains by fourth consecutive day and close at historical high levels. .

The 30-share BSE Sensex jumped 568.93 points or 0.72 per cent to settle at a fresh closing high of 79,243.18. During the day, it rose 721.78 points or 0.91 percent to reach the new all-time high of 79,396.03.

The Nifty ended at a new record high of 24,044.50, rising 175.70 points or 0.74 per cent. Intraday, it soared 218.65 points or 0.91 percent to hit the all-time high of 24,087.45.

Among the 30 Sensex companies, UltraTech Cement jumped over 5 per cent after the country's top cement maker said it will acquire a 23 per cent stake in rival India Cements Ltd, based in Chennai, in a deal estimated at around 1,885 crores.

Gains in Infosys, TCS and Reliance Industries took the benchmark indices to record highs.

NTPC, JSW Steel, Tata Motors, Bharti Airtel, Power Grid, Kotak Mahindra Bank and Tech Mahindra were also among the top gainers.

Larsen & Toubro, Sun Pharma, Nestle, HDFC Bank and Maruti were among the laggards.

Analysts said most sectors posted gains, with IT and energy gaining the most. The broader indices showed mixed results as the mid-cap index closed in the green, while the small-cap index lost more than half a percent.

In Asian markets, Seoul, Tokyo, Shanghai and Hong Kong closed lower. European markets were trading with mixed results. US markets ended in positive territory on Wednesday.

Foreign institutional investors (FIIs) offloaded shares worth Rs 3,535.43 crore on Wednesday, according to exchange data.

Global benchmark Brent crude rose 0.84 percent to $85.97 a barrel.

The BSE benchmark index rose 620.73 points or 0.80 per cent to settle at a fresh closing high of 78,674.25 on Wednesday. The Nifty rose 147.50 points or 0.62 per cent to settle at a record closing peak of 23,868.80.