Banks have spearheaded the pre-election rally in the Indian stock market, with the Bank Nifty gaining almost 6 per cent, or 1,600 points, to record highs during last week in which the gauge posted its sharpest weekly advance in the past couple of years.