After a buoyant start, the market turned easy, slipped into the red and finally ended marginally down on Friday.
IT stocks had a good outing following Infosys' better than expected results and earnings forecast.
However, stocks from other sectors declined on selling pressure.
Weak November Industrial Production data hurt sentiment.
The Sensex, which rose to 19,839 in early trades, ended the day at 19,639.34 (provisional) with a loss of 24.21 points or 0.12%.
The Nifty closed at 5943.55, down 25.10 points or 0.42%.
With almost all IT stocks, led by Infosys (up 17%) surging higher, the BSE IT spurted more than 9%
Midcap and smallcap stocks declined sharply.
The market breadth was weak.