Investors preferred shares of domestically-focused companies to those in export-driven firms such as Infosys.
They hope Prime Minister Narendra Modi will unveil a slew of reforms, including a goods and services tax and changes in land-acquisition laws.
Meanwhile, the Reserve Bank of India is expected to cut interest rates as early as in February, helping spur economic growth.
Underlying sentiment also remained robust on continued foreign buying. Investors abroad bought shares worth Rs 656 crore ($106 million) on Monday, bringing their total purchase in stocks to $15.3 billion in 2014.
"Indexes are consolidating. Defensives are being de-selected in the portfolio while old economy stocks are gaining on rate-cut hopes," said Deven Choksey, managing director at K R Choksey Securities.
The BSE Sensex rose as much as 0.4 per cent to an all-time high of 28,282.8 before ending down 0.05 per cent.
The NSE Nifty closed 0.06 per cent lower after hitting a record high of 8,454.5.
Domestic economy-driven shares led gains. L&T advanced 1.8 per cent, while HDFC Bank rose 1.4 per cent.
Exporters fell on portfolio churning. Infosys dropped 0.9 per cent, while Tata Consultancy Services lost 1.2 per cent.
Power Grid Corporation of India rose 1.1 per cent, while Punjab National Bank ended up two per cent.
Among drug exporters, Sun Pharmaceutical Industries lost 1.9 per cent, while Cipla ended 0.9 per cent lower.
Shares of jewellery companies also fell after the central bank said it was discussing increasing restrictions on gold imports.
Titan Company fell 1.1 per cent, Tribhovandas Bhimji Zaveri lost 2.3 per cent and Shree Ganesh Jewellery House ended down 2.7 per cent.