Following the defeat of the Yes Scotland campaign in the 2014 Scottish independence referendum, Salmond resigned and Sturgeon was elected unopposed as SNP leader in November 2014 and appointed as first minister. Sturgeon led the SNP through the 2015 general election when it enjoyed a surge in support, recording a number of swings of over 30% from Labour, as it won 56 of the 59 Scottish seats and replaced the Liberal Democrats as the third-largest party in the British House of Commons. In the 2016 election, the SNP was returned as the largest single party in the Scottish Parliament but fell two seats short of a majority. Sturgeon secured a second term as first minister, forming an SNP minority government. In the 2016 UK referendum on EU membership, Scotland voted by 62% to remain in the European Union, despite Brexit receiving 52% of the vote across the UK. After the vote to leave the EU, Sturgeon's government has repeatedly proposed a second referendum on independence. The SNP gained a seat in the 2021 Scottish Parliament election, winning 64 seats, but fell one seat short of a majority. Sturgeon’s government subsequently entered a power-sharing agreement with the Scottish Greens. As First Minister, Sturgeon has been leading the Scottish Government's response to the COVID-19 pandemic in Scotland since 2020.