Two German reporters detained for four months after interviewing the son and lawyer of a woman facing death by stoning were returning home Sunday after being freed.
"The two accused detained in Tabriz have been released and are departing for their home country," said Malek Ajdar Sharifi, the judiciary chief of East Azerbaijan in northern Iran, quoted by the official news agency IRNA.
German Foreign Minister Guido Westerwelle arrived in Iran late Saturday to take Marcus Hellwig and Jens Koch back to Germany overnight.
An Iranian court sentenced the journalists to 20 months in prison for acting against "national security" but then commuted the sentence to fines of around 50,000 dollars (36,500 euros) each, ISNA news agency said.
The two work for Bild am Sonntag and were arrested on October 10 in the northwestern city of Tabriz after interviewing the son and lawyer of Sakineh Mohammadi Ashtiani, whose death sentence by stoning for adultery drew widespread international condemnation.
Quoting a judicial statement, ISNA said trial hearings were held for the two. After "examining the accusation of acting against national security, they were sentenced to a 20-month jail term," it said.
"But because of their special situation and, it is clear that they were used by one of the others accused in this case, it was felt that they deserved Islamic compassion."
It said the verdicts were commuted to fines instead. The two Germans later arrived in Tehran from Tabriz and refused to comment to the media.
Westerwelle went straight to the Iranian presidency after his arrival to meet Mahmoud Ahmadinejad.
The Iranian leader and Westerwelle discussed "regional issues, the situation in Afghanistan and the need to cooperate (in the fight) against terrorism and drug trafficking", the president's office said.
At a joint press briefing with his Iranian counterpart, Ali Akbar Salehi, Westerwelle said their meeting allowed them to "get acquainted" but was not meant to "discuss big issues."
Salehi said Westerwelle's visit was to "strengthen bilateral ties." More meetings had already been scheduled for the future, he added.
Iran wants to "look ahead" in its ties with Germany as the two countries had "many issues to discuss," he added.
At the end of January, Iran's Mehr news agency quoted prosecutor general Gholam Hossein Mohseni Ejeie as saying the journalists had entered the Islamic republic as tourists and been arrested because they were in fact reporters.
"They have accepted that their work was illegal," he said.
Iran had accused the Germans of having links with an "anti-revolutionary group," and said they had not obtained a special government permit to work in the country, usually required of foreigners.
German Deputy Foreign Minister Wolf-Ruthart Born visited Tehran last month to discuss the case, Bild am Sonntag reported at the time.
Also in January, Iran's foreign minister demanded "apologies" over the incident from the Axel Springer group, which owns the mass-circulation newspaper.
In late December, Iranian authorities allowed the pair to meet relatives who travelled to Tabriz after repeated requests from the German government. State television broadcast footage of the encounter.
Westerwelle later thanked his Iranian counterpart for his "support" over the detention of the journalists.
Mohammadi Ashtiani has been sentenced to death by two different courts in Tabriz -- where she is also detained -- in separate trials in 2006.
Her sentence to hang for her involvement in her husband's murder was commuted to a 10-year jail term by an appeals court in 2007.
But a second sentence to death by stoning on charges of adultery levelled over several relationships, notably with the man convicted of her husband's murder, was upheld by another appeals court the same year.
She told reporters in January that she planned to sue several people -- including the German reporters -- for "disgracing" her.