Influenced by socialist ideas from an early age, he was elected to the Uttar Pradesh Legislative Assembly in 2012 and served as a Minister of State (Independent Charge) in the Akhilesh Yadav government until 2017.
In 2024 the SP fielded him from Sant Kabir Nagar against sitting BJP MP Praveen Kumar Nishad. He polled 4,98,695 votes and won by 92,170 votes. In the Lok Sabha he has spoken on the railway budget and the rural employment bill.