He was elected to the 15th Lok Sabha from Salempur in 2009, succeeding four-time MP Hari Kewal Prasad.
Contesting for the SP in 2024, he polled 4,05,472 votes and defeated sitting BJP MP Ravindra Kushwaha by 3,573 votes. In the Lok Sabha he has spoken on the railway budget and on outsourcing of government jobs.