Five Americans jailed for years in Iran and widely regarded as hostages are on their way home to the United States.
The last pieces in a controversial swap mediated by Qatar fell into place when $6bn (£4.8bn) of Iranian funds held in South Korea reached banks in Doha.
It triggered the departure of the four men and one woman in Tehran, who are also Iranian citizens, on a chartered flight to Qatar's capital.
They were met by senior US officials and are now on their way to Washington.
The Americans include 51-year-old businessman Siamak Namazi, who has spent nearly eight years in Tehran's notorious Evin prison, as well as businessman Emad Shargi, 59, and environmentalist Morad Tahbaz, 67, who also holds British nationality.
The US has said its citizens were imprisoned on baseless charges for political leverage.
In the first indication a deal was reached, they were moved in mid-August from Evin to a safe house in Tehran.
Five Iranians imprisoned in US jails, mainly on charges of violating US sanctions, are also being granted clemency as part of this swap. Not all of them are expected to return to Iran.
They have been named by Iran as Reza Sarhangpour, Kambiz Attar Kashani, Kaveh Lotfolah Afrasiabi, Mehrdad Moein Ansari and Amin Hasanzadeh.
"Today, five innocent Americans who were imprisoned in Iran are finally coming home," US President Joe Biden said after their plane landed in Doha.
He said all five had endured "years of agony, uncertainty, and suffering."
Mr Biden also announced fresh US sanctions targeting the former Iranian president Mahmoud Ahmadinejad and the Iranian Ministry of Intelligence for what he said was their involvement in wrongful detentions.
Siamak Namazi said in a statement: "I would not be free today if it wasn't for all of you who didn't allow the world to forget me.
"From the bottom of my heart, thank you. Thank you for being my voice when I could not speak for myself and for making sure I was heard when I mustered the strength to scream from behind the impenetrable walls of Evin Prison."
He also praised President Biden for making "some incredibly difficult decisions to rescue us" and "ultimately putting the lives of American citizens above politics".
The deal comes after months of indirect talks mediated by Qatar, which began in February last year.
A source said that there were at least nine rounds of discussions in Doha. Senior Qatari officials also shuttled between Tehran and Washington.
"I think there's a little bit of a win for both sides," Iranian-born Professor Mehran Kamrava, who now teaches at Georgetown University in Qatar, told the BBC.
"For Biden, heading into the election, he's bringing Americans home and for Iran, there's the release of Iranians in prison in the United States, but it's that six billion [dollars] that's a big win."
Iranian officials have repeatedly declared they will spend their money as they wish. However, sources involved in this process insist these funds will be strictly controlled.
"No funds will go into Iran," they emphasised. "Only humanitarian transactions, including food, medicine, agriculture, paid to third party vendors, transaction by transaction."
Sources told the BBC this money was not part of Iranian assets frozen by sanctions. The money in South Korea, revenue from Iranian oil sales, had been available to Tehran for bilateral and non-sanctioned aid but was not spent for various reasons including difficulties of currency conversion.
Leading US Republicans have denounced the deal as a ransom payment and sanctions relief. The Republican chairman of the House Foreign Affairs Committee, Michael McCaul, castigated the US government for transferring funds to "the world's top state sponsor of terrorism".
Latest Stories
-
Hohoe Ghana Blind Union organises training for members ahead of Election 2024
2 mins -
Alan Kyerematen reveals his future plans for Ghanaian Health professionals
3 mins -
AAIN empowers women and small enterprises in Upper East Region through SHINE project
4 mins -
Akufo-Addo leads nationwide commissioning of 80 educational projects
10 mins -
Ghana and Seychelles strengthen bilateral ties with focus on key sectors
41 mins -
National Elections Security Taskforce meets political party heads ahead of December elections
44 mins -
Samsung’s AI-powered innovations honored by Consumer Technology Association
1 hour -
Fugitive Zambian MP arrested in Zimbabwe – minister
1 hour -
Town council in Canada at standstill over refusal to take King’s oath
2 hours -
Trump picks Pam Bondi as attorney general after Matt Gaetz withdraws
2 hours -
Providing quality seeds to farmers is first step towards achieving food security in Ghana
2 hours -
Thousands of PayPal customers report brief outage
2 hours -
Gary Gensler to leave role as SEC chairman
2 hours -
Contraceptive pills recalled in South Africa after mix-up
2 hours -
Patient sues Algerian author over claims he used her in novel
3 hours