He was a member of the Janata Party. He was a member of the Lok Sabha between 1977 to 1984, 1989 to 1991, 1991 to 1996, 1996 to 2009 and from 2014 to 2019. He was also a member of the Rajya Sabha between 2010 to 2014 and from 2019 until his death.