Nicola Sturgeon's term as first minister of Scotland began on 20 November 2014 when she was formally sworn into office at the Court of Session. It followed Alex Salmond's resignation following the defeat of the Yes campaign in the 2014 Scottish independence referendum. She is the first female and longest serving officeholder. Sturgeon's premiership has been dominated by Brexit, the COVID-19 pandemic, the cost of living crisis and her repeated attempts to hold a second referendum on Scottish independence.