The US and Russia have exchanged jailed US basketball star Brittney Griner for notorious arms dealer Viktor Bout, held in an American prison for 12 years.
UAE President His Highness Sheikh Mohamed bin Zayed Al Nahyan and Crown Prince of Saudi Arabia Mohammed bin Salman bin Abdulaziz Al Saud led mediation efforts that secured the release of Griner in a prisoner swap with Russia, a joint statement released by WAM said on Thursday.
President Joe Biden said Griner was safe and on a plane home from the United Arab Emirates.
"I'm glad to say Brittney's in good spirits... she needs time and space to recover," he said at the White House.
Bout - widely known as the "merchant of death" - has arrived back in Moscow, Russian media reports.
"In the middle of the night they simply woke me up and said 'Get your things together' and that was it," Bout said in brief remarks to a reporter from national television, after landing in Russia.
Bout reportedly came down the aeroplane steps carrying a bouquet of flowers before embracing his mother and his wife.
Griner was arrested at a Moscow airport in February for possessing cannabis oil and last month she was sent to a penal colony.
The Biden administration proposed a prisoner exchange in July, aware Moscow had long sought Bout's release.
The elaborate swap involved two private planes bringing the pair to Abu Dhabi airport from Moscow and Washington, and then flying them home.
Footage on Russian state media showed them crossing on the tarmac with their respective teams. In the video, apparently provided by Russian security services, Bout is warmly greeted by two Russian officials as Griner, who is 6ft 9in (206cm), looks on. Part of the swap is then edited out before the two parties go their separate ways.
"The Russian citizen has been returned to his homeland," the Russian foreign ministry said in a statement.
Speaking in the Oval Office, Brittney Griner's wife Cherelle praised the efforts of the Biden administration in securing her release: "I'm just standing here overwhelmed with emotions."
According to a joint Saudi-UAE statement, Saudi Crown Prince Mohammed bin Salman played a leading role in mediation efforts, along with UAE President Mohammed bin Zayed al-Nahyan.
The heir to the Saudi throne has good relations with Russia's Vladimir Putin and in September he helped co-ordinate a complex swap of hundreds of prisoners held by Russia and Ukraine.
But the White House denied any mediation had been involved. "The only countries that negotiated this deal were the United States and Russia," said press secretary Karine Jean-Pierre.
When negotiations began to secure Griner's release during the summer, the US made clear it wanted ex-marine Paul Whelan to be included in an exchange.
Bout's lawyer, Alexei Tarasov, told Russian TV that from the start the US wanted two of its citizens returned, and Russia's foreign ministry complained that "Washington categorically refused to engage in dialogue".
But it became clear that Whelan, jailed in 2018 on suspicion of spying, would not be part of the Russian swap, dashing his family's hopes.
Paul Whelan told CNN he was "greatly disappointed" more had not been done to free him, as he had carried out no crime: "I don't understand why I'm still sitting here," he said.
President Biden finally signed the order for Bout's release, commuting his 25-year jail term, in a direct swap for Griner.
Bout's wife Alla told Russian TV she had spoken to him only two days ago: "He was supposed to call me tonight. Now we'll see each other and hug each other. That's better than any phone call."
Viktor Bout sold arms to warlords and rogue governments, becoming one of the world's most wanted men.
Dubbed the "merchant of death" for gun-running in the years after the fall of the Soviet Union, the Russian's exploits inspired the 2005 Hollywood film Lord of War, which was loosely based on his life.
His secretive career was brought to an end by an elaborate US sting in 2008, when he was arrested at a hotel in the Thai capital Bangkok, to the anger of the Russian government.
He was extradited two years later and has spent the past 12 years in an American jail for conspiring to support terrorists and kill Americans.
Bout's circumstances could hardly be more different from that of his opposite number in the prisoner swap.
Brittney Griner, 32, is one of the best-known sportswomen in America. During the US basketball season the double Olympic champion is a star centre for Phoenix Mercury in the WNBA.
Her only reason for flying to Moscow was to play in Russia during the off-season in the US. She told her Russian trial that the cannabis oil found in her bag had been an "honest mistake".
Secretary of State Antony Blinken singled out the efforts of presidential envoy Roger Carstens, who accompanied Griner on the plane from the UAE.
Leading figures in US basketball welcomed her release, among them twice WNBA champion Breanna Stewart of the Seattle Storm.