He was a member of the Uttar Pradesh Legislative Council from 1986 to 1991, and was elected to the Legislative Assembly in 1991, 1996, 2002, 2007, 2017 and 2022, the last two times from Katehari.
He served as a Minister of State in 1997, Minister for Public Enterprises and later Medical Education in 2002–03, and in the 2007–2012 Mayawati government held portfolios including Medical Education, Parliamentary Affairs and Finance. He also chaired several Assembly committees.
He contested Shravasti for the BSP in 2014. In June 2021 the BSP expelled him and he joined the Samajwadi Party, winning Katehari for it in 2022.
In 2024 he won Ambedkar Nagar with 5,44,959 votes, defeating BJP's Ritesh Pandey by 1,37,247 votes.