He contested his first election in 1951 for Budaun Municipality.
In 1969, Alam contested the assembly election from Budaun on Indian National Congress's ticket, but he came second, losing to Jan Sangh's Kishanswaroop Vaish by 10,000 votes.