Andersson, 54, a former finance minister and leader of the Social Democratic Party, made international headlines Wednesday after she stepped down just hours after winning a vote to become prime minister by a narrow margin. The nascent government's collapse was sparked by the Green Party leaving her coalition.
She will now form a one-party, minority government.
“It feels good and I am eager to start,” Andersson told reporters at a news conference after being elected, the Associated Press reported.
Sweden is known for its progressive views on gender, but it never had a woman in the top political post, making Andersson’s appointment as prime minister a historic milestone for the nation of 10 million.
In the last general election in 2018, 47 percent of the Swedish MPs elected were female, the parliament's press office told NBC News. But Sweden is the last Nordic country to get a female prime minister.
Download the NBC News app for breaking news and politics
Andersson takes over as prime minister at a time of political fragmentation in the run-up to a general election in September. Her Social Democrats have been in power since 2014 supported by parties united by little else than their desire to keep the Sweden Democrats, a right-wing populist party, from influencing political agenda and policy.
As a minority leader, Andersson will have to lead one of Sweden’s weakest governments in recent decades with just 100 seats in the 349-seat parliament, limiting her ability to govern as she will have to rely on support from other parties to implement policy.
She will also have to live with a budget imposed on her by the opposition.
But Andersson said Monday her party has “a long tradition of cooperation with others,” and will “stand ready to do what is needed to lead Sweden forward.”