Hair was elected to the House of Commons in 2017, overturning a majority of 11,230 to unseat the Scottish National Party (SNP) chief whip Mike Weir.[5] The constituency had been represented by a SNP MP since its creation in 1997.[6]