Benchmark indices extended their rally for a second straight day on Tuesday, with the Sensex climbing 427.40 points and the Nifty closing at its highest since late February, driven by record foreign fund inflows, moderate crude oil prices and buying in bank stocks.

The 30-share BSE Sensex rallied 427.40 points, or 0.52 per cent, to settle at 82,532.19. During the day, it surged 792.7 points, or 0.96 per cent, to 82,897.49. The 50-share NSE Nifty climbed 96.30 points, or 0.38 per cent, to end at 25,387.40.

The Nifty crossed 25,500 during the session for the first time since 26 February, touching an intraday high of 25,501.35, though it could not hold that level into the close. The indexes have gained about 10.1 per cent and 10.8 per cent respectively this month.

On Monday, the Sensex had climbed 512.34 points to settle at 82,104.79, and the Nifty had gained 146.80 points to close at 25,291.10.

Bank stocks lead as Nifty Bank hits a record

Banking stocks led the gains. The Nifty Bank breached the 62,000 level and closed at a record 62,273.25, up 697.35 points or 1.13 per cent, after touching an intraday high of 62,324.55.

Punjab National Bank rose more than 4 per cent, while Canara Bank, the State Bank of India and Union Bank of India gained between 1.5 and 2.6 per cent. Axis Bank, up nearly 2 per cent, was among the top gainers on the Sensex, along with Reliance Industries, the State Bank of India, Tata Consultancy Services, Adani Ports and Mahindra and Mahindra.

HCL Tech, Power Grid, Tech Mahindra and Infosys were among the laggards. Eleven of the 16 major sectors advanced, while small-caps fell 0.2 per cent and mid-caps added about 0.3 per cent. About 2,001 shares advanced, 2,128 declined and 171 were unchanged.

Record foreign inflows power the rally

Foreign portfolio investor inflows into India have reached Rs 84,166 crore so far in November, a record $9.53 billion, in a dramatic reversal of foreign investment flows. Foreign institutional investors bought equities worth Rs 4,864.68 crore on Monday, according to exchange data.

"The tailwinds that made India the best performing market in November, so far, continue to get stronger," said V K Vijayakumar, chief investment strategist at Geojit Investments. "Brent crude dipping below $92 will further strengthen India's macros. This is getting reflected in the rupee which has strengthened."

Brent crude, the global oil benchmark, traded at around $92 a barrel, easing on expectations of a supply surplus driven by recovering Middle East exports. The rupee rose 43 paise to close at 93.51 against the US dollar.

Vijayakumar added that the reversal in foreign flows, supported by strong earnings growth in the second-quarter results, would help the Indian market stay resilient despite turmoil in global markets.

India bucks weak global markets

The benchmarks defied a weak global trend. Asian markets ended lower, with South Korea's Kospi, Japan's Nikkei 225, Shanghai's SSE Composite and Hong Kong's Hang Seng all in negative territory, and European markets were trading lower.

US markets had ended lower on Monday, with the Nasdaq Composite falling 2.49 per cent, the S&P 500 down 1.92 per cent and the Dow Jones Industrial Average declining 1.41 per cent. Asian peers also fell after the US Department of Commerce moved to tighten restrictions on semiconductor exports.

Analysts said the Nifty staying above 25,250 would keep markets bullish, with 25,500 the next level to watch. "Nifty in the last three sessions is seen trading in the broad range of 25,050 to 25,450," said Pabitro Mukherjee, deputy vice president for research at Bajaj Broking.