Irishman Bernard Phelan has been released from prison in Iran, his family have said.
His sister Caroline said they "received confirmation" of his release on Friday.
"So many people have been involved in making this moment happen and we want to thank everybody.
"Bernard has been held captive for over 200 days, so at this time we gratefully ask that he is given the time and space needed to recover, " she added.
Mr Phelan (64), who works in tourism, had been detained in Iran since October 3rd 2022.
He had been convicted of providing information to an enemy country, which he denied, and sentenced to 6.5 years in prison.
Foreign Affairs Minister Micheál Martin said Mr Phelan, a dual Irish-French national, is "now on his way home to his family."
"I am deeply appreciative of the efforts of the French government and my counterpart, French Foreign Minister Catherine Colonna, for their work to resolve this case," Mr Martin said
"I spoke to the Iranian Foreign Minister, Hossein Amir-Abdollahian, yesterday and I acknowledge the assistance of the Iranian Ministry of Foreign Affairs in relation to Mr Phelan's release.
"I am also very grateful to our Consular team in the Department of Foreign Affairs in Dublin, our diplomats on the ground in our Mission in Tehran, and our Ambassador in Turkey accredited to Iran," he added.
Benjamin Briére, a French national who was imprisoned with Mr Phelan in Mashhad Prison, has also been released.