Mahinda & Mahindra, Tata Motors, Maruti Suzuki and Bajaj Auto contributed the most to the gains in the Nifty.