(CNN) – The first woman to be Sweden’s prime minister, Magdalena Andersson, resigned her post just hours after being voted in, the official Swedish Twitter account announced on Wednesday.
The drastic move comes before she was fully in office, as she had not yet had a meeting with King Carlos XVI Gustavo, a spokesperson told CNN.
His resignation follows a budget defeat in parliament, adds the Swedish Twitter account, in which lawmakers supported the opposition bill.
The Green Party has also decided to leave the minority coalition government with Andersson’s Social Democrats, he said, adding: “The current government will remain an interim government until a new government is established.”
Andersson, 54, said she had told the Speaker of Parliament that she hoped to be re-elected as prime minister at the head of a “one-party Social Democratic government,” Reuters reported.
Replaced Stefan Löfven, who recently resigned as the country’s prime minister and as the leader of the Social Democratic Party.
All the other Nordic countries (Finland, Denmark, Norway and Iceland) have previously elected women national leaders.
As Prime Minister, Andersson was preceded by 33 men. She previously worked as Deputy General Manager of the Swedish Tax Agency, according to her CV at the Swedish government website.
She has a Master’s in Economics from the Stockholm School of Economics and had served as Sweden’s Finance Minister since 2014.
She is also the second woman to head the center-left Social Democratic Party, according to Sweden’s Twitter account.