Shettar was first elected to the Karnataka Legislative Assembly from Hubli in 1994 and went on to represent the Hubli–Dharwad Central seat for several terms. After the BJP won the 2008 election he was unanimously elected Speaker; in 2009 he resigned to join B. S. Yediyurappa's cabinet as Minister for Rural Development and Panchayat Raj.
On 12 July 2012 he was sworn in as Chief Minister of Karnataka. He led the BJP into the May 2013 Assembly election and resigned on 8 May 2013 after the party lost power, then served as Leader of the Opposition. In August 2019 he became Minister for Large and Medium Industries in the Yediyurappa government.
Denied a BJP ticket for the 2023 Assembly election, Shettar resigned from the party and his Assembly seat in April 2023 and joined the Indian National Congress, which made him a Member of the Legislative Council. He returned to the BJP in January 2024.
In the 2024 general election the BJP fielded him from Belgaum. He won with 7,62,029 votes, defeating Congress candidate Mrinal Hebbalkar by 1,78,437 votes.