The Sensex closed with a gain of 270 points, or 0.32 per cent, at 83,712.51, while the Nifty 50 rose 61 points, or 0.24 per cent, to 25,522.50. The mid and small-caps segments underperformed.