Mumbai, NSE's broader benchmark Nifty advanced further to settle at an all-time high for the third consecutive session on Friday, while the BSE gauge Sensex retreated from the record to fall below the 80k level.

The broader NSE Nifty rose 21.70 points or 0.09 per cent to close at its all-time high of 24,323.85.

The 30-share BSE Sensex fell 53.07 points or 0.07 per cent to settle at 79,996.60.

Among the pack of 30 Sensex stocks, State Bank of India, Reliance Industries, Hindustan Unilever, NTPC, Larsen & Toubro, Nestle India, Power Grid, ITC, JSW Steel and Sun Pharmaceuticals were the top gainers.

On the other hand, HDFC Bank, Titan, Mahindra & Mahindra, IndusInd Bank, UltraTech Cement, Tata Motors, HCL Technologies and Asian Paints were among the laggards.

"The domestic market operated on a mixed bias, with the heavyweight banking sector acting as a laggard. Adding to the concern are major lending banks, which recorded a sequential decline in deposit growth in the June quarter.

"Midcap and smallcap companies outperformed and respective BSE indices hit an all-time high," said Vinod Nair, head of research at Geojit Financial Services.

Asian markets closed on Thursday with mixed results.

US markets were closed on Thursday for Independence Day.

On Thursday, the 30-share BSE Sensex hit an intraday record high of 80,392.64 in early trade. Later, the Sensex closed 62.87 points or 0.08 per cent higher at 80,049.67, its all-time closing high.

The broader Nifty also hit an intraday record high of 24,401 in early trade before closing almost flat. The 50-issue index rose 15.65 points or 0.06 percent to a record 24,302.15.

Foreign institutional investors (FIIs) were net buyers in the capital markets on Thursday as they bought shares worth Rs 2,575.85 crore, according to exchange data.