Turkey on Thursday became the final Nato nation to ratify Finland's membership of the US-led defence alliance in the wake of Russia's assault on Ukraine.
Lawmakers unanimously backed the Nordic country's accession two weeks after President Recep Tayyip Erdogan publicly blessed the bid.
"This evening, we are keeping the promises we made to Finland," ruling party lawmaker Akif Cagatay Kilic said moments before the vote.
Turkey's approval leaves Finland – which has a 1,300-kilometre border with Russia – with only a few technical steps before it becomes the 31st member of the world's most powerful military bloc.
Officials expect the process to be completed as early as next week.
Finland and its neighbour Sweden ended decades of military non-alignment and decided to join Nato last May.
Their applications were accepted at a June alliance summit that was designed to show the Western world's desire to stand up to Russia in the face of Europe's most grave conflict since World War II.
But the bids still needed to be ratified by all the members' parliaments – a process that stalled with Turkey and Hungary.
Erdogan put up stiff resistance to Sweden's candidacy because of a series of long-standing disputes.
He first signalled his more supportive stance on Finland's membership in January – a position that forced the Nordic neighbours to bow to the diplomatic pressure and break up their bids so that both applications were not delayed.
The Hungarian parliament ratified Finland's Nato membership on Monday. It was expected to approve Sweden's accession during the current session ending June 15.
But a spokesman for Hungarian Prime Minister Viktor Orban on Wednesday called on Sweden to "clear the air" and address "an ample amount of grievances" for the vote to go ahead.
Sweden has upset Orban – one of Europe's closest allies of Russian President Vladimir Putin – by expressing alarm over the rule of law in Hungary.
It has also angered Turkey by refusing to extradite dozens of suspects that Erdogan links to a failed 2016 coup attempt and a decades-long Kurdish fight for an independent state.
Stockholm still hopes to join the alliance in time for a July summit in Vilnius.
Most analysts believe that Turkey will only vote on Sweden's candidacy after the country's May general election. (AFP)