Although the benchmark Sensex came down from the day's high on late profit-selling, it continued its upward journey on firm global cues and ended up by 113 points.
A strong rally on Wall Street on Tuesday on surprisingly strong housing data paved the way for other global markets to display firm trends on Wednesday.
Renewed buying by foreign institutional investors (FIIs) on March 17 also aided sentiment. They pumped in Rs 415.12 crore on the same day as per provisional figures.
The 30-share Sensex resumed higher and for the second straight day crossed the 9,000 mark in mid-afternoon to the day's high of 9,120.46.
However, profit-booking at higher levels pulled it down to settle the day below 9,000 at 8,976.68, still showing a net rise of 112.86 points or 1.27 per cent over the previous close. At the day's high it was up by 256.64 points.
The broad-based 50-share Nifty of the National Stock Exchange also improved by 37.25 points or 1.35 per cent to 2,794.70 from its last close.
Asian indices ended in the green on Wednesday. The Hang Seng was up by 1.86 per cent, the Straits Times by 1.08 per cent, the Kospi by 0.52 per cent, the Nikkei by 0.29 per cent and the Taiwan Weighted by 0.12 per cent.