Sarah Shourd and Shane Bauer, US hikers jailed in Iran for spying, marry in California

Sarah Shourd and Shane Bauer, the American hikers detained and accused of spying after hiking near the Iraq-Iran border three years ago, have married in California.

American hiker Josh Fattal (C) is greeted on September 21, 2011 in Muscat, Oman, after Tehran released him and Shane Bauer on bail, months after handing them an eight year jail term. The pair was released earlier September 21, 2011 from Tehran's notorious Evin prison, after more than two years in jail for spying and illegal entry into Iran, after the Gulf sultanate of Oman paid their bail. (Mohammed Mahjoub /AFP/Getty Images)

Sarah Shourd and Shane Bauer, the American hikers detained and accused of spying after hiking near the Iraq-Iran border three years ago, have married in California.

Shourd, Bauer and Josh Fattal, all University of California, Berkeley graduates, were captured on July 31, 2009 after straying over the border into Iran from Iraq during a walking holiday.

The wedding ceremony held at an undisclosed location, San Francisco attorney and family friend Ben Rosenfeld told the Associated Press.

Fattal was best man.

In a statement on the Free the Hikers Facebook page, Shourd said: "Now that this day has come, all I can do is close my eyes and fill with gratitude, for our freedom, for the love of so many generous people around the world, and for the very soil under my feet."

In a separate message, cited by ABC, Bauer wrote: "Becoming engaged to Sarah while we were in captivity allowed me to dream of a future that was not only secure, but also beautiful."