The Social Democrats held a party congress on 4 November 2021, in order to elect a new leader; former finance minister Magdalena Andersson succeeded Löfven as the leader of the party.[24] Speaker Norlén proposed Andersson to form a government, and after securing a deal with V, Andersson was elected as prime minister of 24 November.[25][26][27] However, MP pulled out of confidence and supply for her government, which led to Andersson's resignation seven hours after her election as prime minister.[27] Speaker Norlén nominated her again, and on 29 November Andersson was re-elected with 101 votes in favor and 75 abstentions.[28][29][30] Considering that MP did not vote in favor of the government, the Andersson Cabinet would be only composed with members of the Social Democrats.[31] Following the beginning of the 2022 Russian invasion of Ukraine, Andersson's government applied with Finland to join NATO on 18 May 2022, despite the historical opposition of Social Democrats towards NATO.[32][33] During the vote in Riksdag, MP and V only voted against joining NATO.[34] In July, the government signed the accession protocol in order to join NATO.[35] Andersson's government received high approval ratings.[36]