Late on Thursday evening Turkey's parliament voted to ratify Finland's bid to join Nato. It was the last of the alliance's current 30 member states to do so, following a 10-month process of negotiations and delays.
In a 276-0 vote, the decision was made at just after midnight on Thursday.
Under Turkish law, Erdogan must sign the bill within 14 days. Finland's application then goes to Washington for the final signatures.
Finland and Sweden started the Nato process together last May, under the assumption that they would both be ratified relatively quickly. However, two Nato members, Hungary and Turkey have yet to approve Sweden's accession.
Greeting the Turkish parliament's move, Finnish President Sauli Niinistö tweeted that "Finland will be a strong and capable Ally, committed to the security of the Alliance."
Niinistö has said he anticipates Finland to join Nato in May.
Prime Minister Sanna Marin (SDP) said "Finland stands with Sweden now and in the future and supports its application," Marin said in her tweet.