He served as chairman of the Saharanpur Nagar Palika Parishad in 2006–2007 and was elected MLA from Muzaffarabad (now Behat) in 2007, serving until 2012; he was also a member of the Assembly's privileges committee.
He contested Saharanpur for the Congress in 2014 and lost. Over the following years he moved between parties, and rejoined the Congress in October 2023. He has served as vice-president of the UP Congress, an AICC national secretary and, from 2026, a working president of the UP Congress Committee.
In 2024 he won Saharanpur with 5,47,967 votes, defeating former BJP MP Raghav Lakhanpal by 64,542 votes. In the Lok Sabha he has spoken on the Waqf (Amendment) Bill, electoral reforms, health and education, and on seat-sharing talks for the 2027 state election.
During the 2014 campaign, an old video clip of a speech in which he made violent remarks about Narendra Modi caused a major controversy; his supporters said the clip was months old and had been released to polarise voters.