In 1987, he quit the Congress party to join V. P. Singh's Jan Morcha, which led to his becoming the first Muslim Minister for Home Affairs in the Union Cabinet of India for one year, from 1989 to 1990.