Five Americans who had been imprisoned in Iran were allowed to leave the country on Monday, according to White House officials, after two years of high-stakes negotiations in which the United States agreed to unfreeze $6 billion in Iranian oil revenue and dismiss federal charges against five Iranians accused of violating U.S. sanctions.
The announcement that the Americans took off in a plane from Tehran just before 9 a.m. eastern, came as President Biden and Ebrahim Raisi, Iran’s president, were to attend the annual United Nations General Assembly meeting of world leaders on Tuesday.
The five Americans, some of whom had been held for years in Evin Prison, one of the most notorious detention centers in Iran, were expected to fly to Doha, the capital of Qatar, for a Cold War-style exchange with two of the five Iranian nationals. Three others declined to return to Iran, according to U.S. officials.
The Americans will be given a brief medical checkup in Doha before boarding a U.S. government plane to be flown back to Washington, officials said.
At the same time, the United States informed Iran that it had completed the transfer of about $6 billion in Iranian oil revenue from South Korea to a Qatari bank account.
Top aides to Mr. Biden have said financial sanctions and strict monitoring will prevent Iran from spending the money on anything except food, medicine and other humanitarian goods. But they acknowledge that the deal might free up money that Iran is already spending on those items for other purposes.
The terms of the deal have generated intense criticism from Republicans, who accused Mr. Biden of helping to finance Iran’s terrorist activities around the world.
“Iran’s leaders will take the money and run,” Senator Tom Cotton, Republican of Arkansas, wrote last week on X, the social media platform formerly called Twitter. “What on earth did Joe Biden think would happen?”
Administration officials have said the agreement with Iran was the only way to win the release of the five Americans, who the United States said had been wrongfully detained by the Iranians in deplorable conditions.
The Americans — Siamak Namazi, Emad Sharghi and Morad Tahbaz, as well as two others who have not been named at their families’ request — had been jailed on unsubstantiated charges of spying. They had spent the last several weeks in Iran in home detention after Tehran agreed to release them from prison while the $6 billion transfer, a complicated process, was completed.
American officials said that Mr. Namazi’s mother and Mr. Tahbaz’s wife are also on the plane out of Iran. Both women are Americans and had been previously prevented from leaving Iran by the government there.
The deal comes as part of a larger effort by the Biden administration to de-escalate tensions with Iran, which had soared in the years since President Donald J. Trump abandoned the 2015 Iran nuclear deal, which placed limits on Tehran’s nuclear program in exchange for sanctions relief.
The release took place two days after the first anniversary of the uprising in Iran that erupted after the death of 22-year-old Mahsa Amini in the custody of the country’s morality police. Hundreds were killed in the ensuing government crackdown, including at least 44 minors, while around 20,000 Iranians were arrested, the United Nations calculated. In the past few weeks, the government has arrested dozens of dissidents and activists in an attempt to prevent a fresh round of protests.
Critics of Iran’s government say Iran most likely timed the release to distract the news media from the anniversary of the protests and to provide Mr. Raisi with a tangible foreign policy success as he meets world leaders and conducts rounds of interviews in New York.
“The international attention is now diverted from the ongoing horrific human rights situation in the country,” said Hadi Ghaemi, the executive director of the Center for Human Rights in Iran, a New York-based advocacy group. “To coincide with the anniversary of the uprising in Iran is seen as a slap in the face of Iranian people inside the country and has angered many.”
But officials at Iran’s mission to the United Nations dismissed the criticism, saying that the timing of the American detainees’ release was conditional on the $6 billion arriving in the Doha bank account and that Iran did not control that process.
In an interview last week in Tehran with Lester Holt, the NBC News anchor, Mr. Raisi said that the American detainees held in Iran were in “good health” and that Tehran had authority over how it used its released funds.
“This money belongs to the Iranian people, the Iranian government, so the Islamic Republic of Iran will decide what to do with this money,” Mr. Raisi said.
Only some of the Iranians involved in the deal were jailed in the United States, though all of them faced federal charges. Those charges will be dropped under the terms of the deal.
Several of them are permanent residents of the United States. American officials said that two of the jailed Iranians decided to return to Iran on Monday. Iran’s foreign ministry spokesman Naser Kanaani said that two would remain in the U.S. and one would return to a third country where he has family.
The Iranians were identified as Kaveh Afrasiabi, 65, who was charged with being an unregistered lobbyist; Reza Sarhangpour Kafrani, 48, a dual Iranian Canadian citizen charged with exporting lab equipment for Iran’s nuclear program; Mehrdad Ansari, who is serving a five-year prison sentence for obtaining military gear; Kambiz Attar Kashani, 45, a dual Iranian American businessman who pleaded guilty to conspiring to illegally export technologies; and Amin Hasanzadeh, who was charged with stealing sensitive technical plans.
Mr. Hasanzadeh has said he will return to Iran.
Negotiations to release the Americans accelerated in the spring, according to people familiar with the discussions, when Brett H. McGurk, the coordinator for the Middle East and North Africa at the White House, met with officials in Oman in early May.
In August, after Iran released the Americans to house arrest, U.S. officials said they would not celebrate until the Americans were out of Iran and on friendly soil.
“Of course, we will not rest until they are all back home in the United States,” Adrienne Watson, a spokeswoman for the National Security Council at the White House, said at the time.
The Biden administration has made considerable efforts during the last three years to win the release of Americans held in other countries.
In March, the United States secured the release of Paul Rusesabagina, a human-rights activist detained in Rwanda. In December, Russia agreed to release Brittney Griner, an American basketball star, in exchange for Viktor Bout, a convicted Russian arms dealer known as the “Merchant of Death.”
But other Americans remain in detention. In March, Russia accused the Wall Street Journal reporter Evan Gershkovich of espionage and detained him. Mr. Biden has said that his administration is working to secure Mr. Gershkovich’s release.