The Nifty 50 wrapped up the session with a marginal decline of 0.02% to close at 26,166, while the S&P BSE Sensex ended nearly flat at 85,517.