The sentence has come down.

The two U.S. hikers that were detained for two years in Iran on spying charges have been sentenced to eight years in prison.

In July 2009, Josh Fattal, Shane Bauer and Sarah Shourd were hiking in the Iraqi Kurdish region and allegedly crossed into Iran illegally.

They claimed it was an accident, but were still held captive for the following two years.

Shourd was released last year because of medical reasons, but Fattal and Bauer were not so lucky.

The two each received five years for espionage, and three years for illegal entry.

World leaders and the hiker's families have made urgent pleas to free the men.

Fattal and Bauer now have 20 days to appeal their sentence.