At the 2017 general election, Gethins was narrowly re-elected as the MP for North East Fife. He received 13,743 votes, giving him a very slim majority of just two votes over the Liberal Democrats; the joint-third smallest majority in British political history. This was confirmed after three re-counts before being declared. After the election, Gethins was promoted to the SNP Westminster frontbench team of Ian Blackford as the party's Spokesperson for International Affairs and Europe.
