 Whilst in prison, he was influenced by the ideals of politician Jaiprakash Narayan and also began learning Hindi.After his release from prison, Mastan entered politics and formed a political party in 1980-81 and named it as Dalit Muslim Surakhsha Maha Sangh in 1985 which was later renamed as Bharatiya Minorities Suraksha Mahasangh currently lead by Sundar Shaekhar

Mastan died of cardiac arrest on 25 June 1994.Several Indian movies have been based upon Haji's life