MUSCAT, Oman – After more than two years in Iranian custody, two Americans convicted as spies took their first steps toward home Wednesday as they bounded down from a private jet and into the arms of family for a joyful reunion in the Gulf state of Oman.

The families called this “the best day of our lives,” and President Obama called their release — under a $1 million bail-for-freedom deal — “wonderful news.”

The release capped complicated diplomatic maneuvers over a week of confusing signals by Iran’s leadership on the fate of Josh Fattal and Shane Bauer.

Although the fate of the two gripped America, it was on the periphery of the larger showdowns between Washington and Tehran that include Iran’s nuclear program and its ambitions to widen military and political influence in the Middle East and beyond. But — for a moment at least — U.S. officials may be adding words of thanks in addition to their calls for alarm over Iran.

For Tehran, it was a chance to court some goodwill after sending a message of defiance with hard-line justice in the July 2009 arrests of the Americans along the Iran-Iraq border. The Americans always maintained they were innocent hikers.

“Today can only be described as the best day of our lives,” said a statement from their families. “We have waited for nearly 26 months for this moment and the joy and relief we feel at Shane and Josh’s long-awaited freedom knows no bounds.”

The families waited on the tarmac at a royal airfield near the main international airport in Oman’s capital, Muscat. Also returning to Oman was Sarah Shourd, who was arrested with Bauer and Fattal but freed a year ago. She received a marriage proposal from Bauer while in prison.

At about 20 minutes before midnight, Fattal and Bauer raced down the steps from the plane. They made no statements to reporters before walking into the airport terminal building, which was guarded by security officials. The men, both 29, appeared thin, but in good health.

“We’re so happy we are free,” Fattal told reporters in Oman. The two men made brief statements before leaving the airport with their families.

“Two years in prison is too long,” Bauer said.