ICICI Bank gained 6.63 per cent, while HDFC Bank surged by 5.31 per cent, Axis Bank by 4.87 per cent and SBI by 3.88 per cent on the BSE.
ICICI Bank was the top gainer on the Sensex.
Among others, Kotak Mahindra Bank shot up by 4.75 per cent, IndusInd Bank by 4.61 per cent, PNB by 4.94 per cent and Bank of Baroda by 2.62 per cent.
Led by the gains in these stocks, the BSE bankex jumped 5.34 per cent to close 15,721.36, becoming the top gainer among 13 sectoral indices. It scaled all-time high of 15,801.26 points in the day-trade.
Another analyst, Jayant Manglik, President-retail distribution, Religare Securities said, "The sentiments were buoyant since the beginning on the back of continuous inflow of foreign fund and expectation of stable government after this general election."
In the broader market, the BSE benchmark index Sensex ended at 22,994.23, up 650.19 points or 2.91 per cent. The index crossed record 23,000 level for the first time in intra-day.