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”.