Members of the Hungarian parliament have ratified Sweden's bid to join NATO in a long-delayed vote, the BBC reports.
Sweden applied to join in 2022 after the outbreak of war in Ukraine, but Hungary accused it of hostility.
However, last week Hungarian Prime Minister Viktor Orban said they were now "ready to die for each other".
Swedish Prime Minister Ulf Kristersson said today was a "historic day" and that Sweden was "ready to take responsibility for Euro-Atlantic security".
NATO Secretary General Jens Stoltenberg said the Hungarian parliament's decision makes the alliance "stronger and safer".
Orban has previously blocked EU efforts to provide military aid to Ukraine.
Sweden is one of the EU countries that accused Hungary of deviating from the EU's democratic principles.