Sweden on Monday officially announced it will apply for NATO membership as a deterrent against Russian aggression, entering a “new era” and reversing two centuries of military non-alignment.

“The government has decided to inform NATO that Sweden wants to become a member of the alliance,” Prime Minister Magdalena Andersson told reporters a day after neighbouring Finland made a similar announcement.

“We are leaving one era and beginning another,” Andersson said of the dramatic turnaround of her country’s position less than three months after Russia’s invasion of Ukraine.

Sweden’s NATO ambassador would “shortly” inform NATO, she said.

Sweden and Finland have both expressed a desire to act in lockstep on NATO membership. They are expected to submit their applications jointly this week.

Russian President Vladimir Putin on Monday warned that NATO’s expansion may trigger a response from Moscow.

It poses “no direct threat for us... but the expansion of military infrastructure to these territories will certainly provoke our response,” Putin said during a televised summit meeting of the Collective Security Treaty Organisation, a Moscow-led military alliance.

Andersson acknowledged Sweden would be “vulnerable” in the interim period before its application is ratified.

Stockholm has received security assurances from several key partners, including the United States, Britain, Germany, France and the Nordic countries, she added.

Sweden’s Supreme Commander of the Armed Forces, Micael Byden, said the risk of a Russian military attack was “pretty low”, but the country could expect to see “disinformation campaigns, cyberattacks, sabotage, (and) subversion”.

Sweden’s announcement was expected after Andersson’s Social Democratic party on Sunday backed membership, in a dramatic U-turn. Sweden had opposed the idea since the birth of the Western military alliance.

The premier had earlier in the day consulted parliament by convening a debate, though lawmakers did not vote on the issue.

Six of eight parties in parliament, constituting a very broad majority, are in favour of joining. Swedish public support has also risen dramatically to around 50 percent -- with about 20 percent against.

In Helsinki, support has surged even more dramatically, with more than three-quarters of Finns in favour of membership, almost triple the level seen before the war in Ukraine began on February 24.

Finnish lawmakers on Monday launched a marathon debate with over 150 of 200 MPs asking to speak, following a NATO membership proposal presented on Sunday by President Sauli Niinisto and Prime Minister Sanna Marin.

“Our security environment has fundamentally changed,” Marin told parliament.

“The only country that threatens European security, and is now openly waging a war of aggression, is Russia”, she said.