Minister John Swinney, to their stance on holding a second Scottish independence referendum and saw a swing to the unionist parties, with seats being picked up by the Conservatives, Labour and the Liberal Democrats and a reduction in their majorities in the other seats. Stephen Gethins, MP for North East Fife, came out of this election with a majority of just two votes to the Liberal Democrat candidate. High-profile losses included SNP Commons leader: Angus Robertson in Moray and former SNP leader and First Minister Alex Salmond in Gordon. The SNP went on to achieve its best-ever European Parliament result in the final election before Brexit, the party taking its MEP total to 3 or half of Scottish seats and achieving a record vote share for the party. This was also the best performance of any party in the era of proportional elections to the European Parliament in Scotland. This was suggested as being due to the party's europhile sentiment during what amounted to a single-issue election, with parties that lacked a clear message performing poorly, such as Labour finishing in fifth place and losing all of their Scottish MEPs for the first time. Later that year, the SNP experienced a surge in support at the 2019 general election, winning a 45.0% share of the vote and 48 seats, its second-best result ever. Although the party lost its most marginal seat to Wendy Chamberlain of the Liberal Democrats, it gained the seat of then Liberal Democrat leader Jo Swinson, along with 7 from the Conservatives and 6 from Labour. Swinson's loss triggered a leadership contest in the Liberal Democrats as a result. This victory was generally attributed to Sturgeon's cautious approach regarding holding a second independence referendum and a strong emphasis on retaining EU membership during the election campaign. The following January, the strengthened Conservative government ensured that the UK left the European Union on 31 January 2020. At the 2021 Scottish election, the SNP won 64 seats, one seat short of a majority, albeit achieving a record high number of votes, vote share and constituency seats, and leading to another minority government led by the SNP. Sturgeon emphasised after her party's victory that it would focus on controlling the COVID-19 pandemic as well as pushing for a second referendum on independence. Although in 2021 they won with a minority, a majority of MSPs elected had come from parties that