The markets overcame a volatile day of trading to close with huge gains. Both Sensex and Nifty gained above 1 per cent. 30-share BSE Sensex gained 348.23 points to close on 32,182.22 while the broader 50-share NSE Nifty finished on 10,096.40, up by 111.60 points.