The Sensex finally ended (provisional) with a gain of 558 points at 13,134.The NSE Nifty surged 138 points to settle at 3,955.