He was elected to the 9th Lok Sabha from Khalilabad in 1989.
From 1993 he won the Kaptanganj Assembly seat in Basti district five times in a row, serving until 2017. He was a Minister of State (Independent Charge) in the Mayawati government in 1997, minister for textiles and sericulture in the Kalyan Singh government in 1997, and Minister of Food and Civil Supplies in the Mayawati government from 2007 to 2012.
In 2019 he contested Basti as the SP–BSP alliance candidate and lost narrowly to BJP's Harish Dwivedi. Later that year the BSP expelled him, and he joined the Samajwadi Party in the presence of Akhilesh Yadav.
In 2024 he won Basti with 5,27,005 votes, defeating Harish Dwivedi by 1,00,994 votes.