The two hikers that were being held captive in Iran have touched down at JFK airport. The hikers were jailed in Iran for allegedly being spies and sentenced to eight years in prison. After pleads from all different countries to release the men and them spending more than two years are home and free. Josh Fattal and Shane Bauer arrived at Kennedy Airport in New York City at about 11 a.m. on a $1 million bail deal. Read more after the jump.

@Julie1205

Two Americans held for more than two years in an Iranian prison on accusations of spying returned to the U.S. on Sunday, ending a diplomatic ordeal that began with what they called a wrong turn into the wrong country.

Josh Fattal and Shane Bauer arrived at Kennedy Airport in New York City at about 11 a.m.

The two were released from prison last week. They arrived Wednesday in Oman under a $1 million bail deal and were embraced by relatives.

They were detained along with fellow hiker Sarah Shourd in July 2009 along the Iran-Iraq border. They say they were only hiking in Iraq’s relatively peaceful Kurdish region and may have wrongly ended up in Iran.

Before boarding the plane in the Omani capital of Muscat on Saturday night, the men made brief statements and thanked Oman’s ruler for helping secure their release.

“We hope to someday return to this wonderful country, but for now we are eager to go home at last,” Fattal told reporters.

Bauer said he won’t forget the feeling of seeing their loved ones waiting for them in Oman.

“The joy of embracing them all after so long will stay with us forever,” he said.

A furious diplomatic effort led to the release of Shourd about a year ago, and negotiations continued for the two men. Last month, Fattal and Bauer were sentenced to eight years in prison each for illegal entry into Iran and espionage.

The first hint of change in the case came last week when Iranian President Mahmoud Ahmadinejad said Fattal and Bauer could be released within days. But wrangling from within the country’s leadership delayed efforts. Iranian defense attorney Masoud Shafiei secured the necessary judicial approval Wednesday for the bail — $500,000 for each man.

Hours later, the gates of Tehran’s Evin prison opened and the Americans headed in a convoy with diplomats to Tehran’s Mehrabad airport.

Iran’s Foreign Ministry called their release a gesture of Islamic mercy.

Until their release, the last previous direct contact family members had with Bauer and Fattal was in May 2010, when their mothers were permitted a short visit in Tehran, which Iranian officials used for high-profile propaganda.

Since her release last year, Shourd has lived in Oakland, Calif. Bauer, a freelance journalist, grew up in Onamia, Minn., and Fattal, an environmental activist, is from Elkins Park, Pa., a Philadelphia suburb.

Bauer proposed marriage to Shourd while they were in jail.

FOXNews