The Nifty ended in the red today, after nine consecutive positive sessions, closing around 121 points or 0.68% lower at approximately 17,706. The S&P BSE Sensex also closed lower, down around 520 points. However, the Nifty Midcap 100 and Nifty Smallcap 100 rallied by 0.39% and 0.33%, respectively.