He was elected from Ankola in 1994, 1999 and 2004, and after delimitation from the new Sirsi constituency in 2008, 2013 and 2018. He served as Minister for Primary and Secondary Education from 2008 to 2013. In July 2019 he was elected the 16th Speaker of the Karnataka Legislative Assembly and held the post until May 2023. He lost the Sirsi seat in the 2023 Assembly election.
The BJP named him its Uttara Kannada candidate in March 2024. He won with 7,82,495 votes, defeating Congress candidate Anjali Nimbalkar by 3,37,428 votes – one of the largest margins in Karnataka that year.