A German citizen who was imprisoned in Iran for illegally entering the country's waters on a fishing expedition in November 2005 has been freed.
Frank-Walter Steinmeier, Germany's foreign minister, said on Sunday that Donald Klein, 53, had been released from a Tehran prison and was with German officials.
Steinmeier said: "I am very happy and very relieved that we managed to secure the release of Mr Klein today."
"His long and unfair imprisonment has weighed on our relations with Iran. I am therefore glad that the Iranian government has now agreed to let him go."
Klein's release comes less than two weeks after a Frenchman jailed with him, Stephane Lherbier, was freed from Tehran's Evin prison after serving most of his 18-month sentence for the same infringement of Iran's territorial waters.
Lherbier was the captain of a boat taking Klein on a trip from the United Arab Emirates across the Gulf.
The two men, who were arrested in November 2005, said they had been misled by Emirati maps showing the waters as Emirati, but were both sentenced to 18 months in jail two months later.
France said Lherbier, who was freed on February 28, had been granted clemency by Iran's supreme leader Ayatollah Ali Khamenei.
After his release, the Frenchman and the German foreign ministry urged Tehran to free Klein as well.
Klein's wife had asked the Iranian authorities to grant her husband clemency, saying he was in fragile health.