Michael White, the first American detained in Iran during the Trump administration, has been released.

The United States Navy veteran is en route from Tehran on a Swiss government flight, after nearly four months of negotiations between State Department officials and the Iranian government, according to a senior U.S. official.

Switzerland is the intermediary between the U.S. and Iranian governments and facilitated negotiations to release the 48-year-old.

A senior U.S. official told Fox News that as part of the deal to free White, the U.S. agreed to release an Iranian-American doctor, Majid Taheri. Taheri served 16 months for violating American sanctions against Iran and was sentenced Thursday to time served. He’s lived in the U.S. for 33 years and is a medical doctor in Florida, the official said.

In July 2018, White says he was visiting his girlfriend in Iran when authorities there arrested him. In March 2019, he was sentenced to 10 years in prison on charges he insulted Iran’s supreme leader and posted private photographs on social media.

“Michael White's a pretty tough guy. He's a cancer survivor. He has now survived two years in Iranian prison where he was beaten in prison. He then contracted in COVID and survived,” said Brian Hook, the State Department’s Special Representative for Iran, who negotiated the agreement to free White. “The Iranian regime has a history of using Americans as political pawns.”

In March, White was initially released on a medical furlough, but he was still ordered to stay in Iran at the time.

Officials say they’re still working to free other American citizens in Iran like Siamak Namazi, a businessman; his father Baquer Namazi; and Morad Tahbaz, an American environmentalist; as well as secure the remains of former FBI agent Robert Levinson. His family announced in late March that they received intelligence that Levinson had died in Iranian custody.

“It is never a linear process negotiating directly or indirectly with the Iranian regime. We have a 41-year history of being adversaries,” said Hook. “And there's been military conflict in our history.”

Top Iranian officials have recently piled on in criticizing the U.S. over the death of George Floyd. Read more at FOX News