SAN FRANCISCO (AP) - Two Americans detained and accused of spying after hiking near the Iraq-Iran border three years ago will marry Saturday in the San Francisco Bay area.

San Francisco attorney Ben Rosenfeld says a private wedding ceremony for Shane Bauer and Sarah Shourd will be held at 4 p.m. at an undisclosed location.

Bauer, Shourd and Josh Fattal, all University of California, Berkeley graduates, were arrested on July 31, 2009, and held in Iran.

Bauer and Fattal were sentenced to eight years after being convicted on spy-related charges, but were released after more than two years.

Shourd was released after 14 months on bail.

All three say they were innocent of spying and had simply strayed across the countries' border while in the mountainous region.

Rosenfeld says Fattal is Bauer's best man.

Copyright 2012, The Associated Press.  All Rights Reserve.

More From AM 1240 WJON