Extending the record run for third day, the 30-share Sensex closed at fresh life high of 34,443.19, eking out gains of 90.40 points, or 0.26 per cent, after a choppy trade.
The wide-based Nifty of NSE also settled at record high of 10,637, 13.40 points, or 0.13 per cent, even as 19 of its constituents advanced and 31 dropped.
Caution prevailed as crude prices surged to the highest level since 2015.
Opening higher, the 30-share Sensex quickly rallied to an all-time intra-day high of 34,488.03 as Coal India, ITC and Tata Motors posted smart gains.
Profit booking in some pharma, capital goods and telecom stocks at record levels, however, pulled the index to a low of 34,343.41 before close.
Foreign portfolio investors (FPIs) have been supporting the ongoing rally by pumping in sizeable capital, brokers said.
"Sustained foreign inflows and optimism ahead of October-December 2017 earnings and the Union Budget 2018 aided gains," Karthikraj Lakshmanan, Senior Fund Manager Equities, BNP Paribas Mutual Fund, said.
Signs of easing geo-political tensions buoyed investor sentiment globally, he added.
Asian markets, which have seen their best start since 2006, gained with Hong Kong recording 11 straight wins and Tokyo at a 26-year high, as investors press on with a global rally.
Other prominent gainers were Wipro, ITC Ltd, Reliance Industries, Asian Paint, Tata Motors, Infosys, Tata Steel, IndusInd Bank, HDFC Bank and M&M, surging by up to 2.11 per cent.
In contrast, Bharti Airtel, Adani Ports, Hero MotoCorp, Sun Pharma, NTPC, Bajaj Auto, Maruti Suzuki, ICICI Bank, SBI, Hind Unilever, L&T, Dr Reddy's, Power Grid, HDFC Ltd, TCS, ONGC and Axis Bank fell by up to 1.18 per cent largely on profit-booking and squeezed the rise in the key indices.
While telecom, power, healthcare, teck, auto and capital goods ended in the negative zone.
The broader markets turned somewhat mixed with small-cap index rising 0.08 per cent while mid-cap index shed 0.40 per cent as investors were busy taking money off the table at record levels.
The market breadth turned negative as 1,623 stocks ended lower, 1,369 closed higher while 102 ruled steady.
Disclaimer: No Business Standard Journalist was involved in creation of this content
