YANGON (Reuters) – Two Reuters journalists jailed in Myanmar after they were convicted of breaking the Official Secrets Act walked free from prison on Tuesday after more than 500 days behind bars.

Wa Lone, 33, and Kyaw Soe Oo, 29, had been convicted in September and sentenced to seven years in jail in a case that raised questions about Myanmar’s progress towards democracy and sparked an outcry from diplomats and human rights advocates.

They were released under a presidential amnesty for 6,520 prisoners. President Win Myint has pardoned thousands of other prisoners in mass amnesties since last month.

It is customary in Myanmar for authorities to free prisoners across the country around the time of the traditional New Year, which began on April 17.

Reuters has said the two men did not commit any crime and had called for their release.

Swamped by media and well-wishers as they walked through the gates of Insein Prison, on the outskirts of Yangon, a grinning Wa Lone gave a thumbs up and said he was grateful for the international efforts to secure their freedom.

“I’m really happy and excited to see my family and my colleagues. I can’t wait to go to my newsroom,” he said.

Kyaw Soe Oo smiled and waved to reporters.

The two were then driven away by Reuters colleagues and reunited with their wives and children.

Before their arrest in December 2017, they had been working on an investigation into the killing of 10 Rohingya Muslim men and boys by security forces and Buddhist civilians in western Myanmar’s Rakhine State during an army crackdown that began in August 2017.

The operation sent more than 730,000 Rohingya fleeing to Bangladesh, according to U.N. estimates.

The report the two men authored, featuring testimony from perpetrators, witnesses and families of the victims, was awarded the Pulitzer Prize for international reporting in May, adding to a number of accolades received by the pair for their journalism.Government spokesman Zaw Htay said the decision to release the two was made after the families wrote to government leader Aung San Suu Kyi.

“We took the letters into consideration and released them in the interest of the country,” Zaw Htay told reporters.

Reuters Editor-in-Chief Stephen J. Adler welcomed the news.

“We are enormously pleased that Myanmar has released our courageous reporters, Wa Lone and Kyaw Soe Oo. Since their arrests 511 days ago, they have become symbols of the importance of press freedom around the world. We welcome their return,” Adler said.

U.N. Secretary-General Antonio Guterres was relieved to learn of the release, a spokesman said. The United Nations in Myanmar said it saw the release as a sign of the government’s commitment to the transition to democracy.

The U.S. Embassy also welcomed the release and said it was glad the two could return to their families.

‘DIALOGUE WORKS’

Myanmar’s Supreme Court had rejected the journalists’ final appeal in April. They had petitioned the top court, citing evidence of a police set-up and lack of proof of a crime, after the Yangon High Court dismissed an earlier appeal in January.

The reporters’ wives wrote a letter to the government in April pleading for a pardon, not, they said, because their husbands had done anything wrong, but because it would allow them to be released from prison and reunited with their families.

The Reuters journalists were released at the prison to representatives of Reuters and to Lord Ara Darzi, a British surgeon and health care expert who has served as a member of an advisory group to Myanmar’s government on reforms in Rakhine State.

“This outcome shows that dialogue works, even in the most difficult of circumstances,” Darzi said in a statement.

Darzi said discussions about the pardon for Wa Lone and Kyaw Soe Oo had involved the Myanmar government, Reuters, the United Nations and representatives of other governments.

He said the government, led by Nobel laureate Suu Kyi, could only consider releasing the pair after the Supreme Court had rejected their final appeal.

“I’m very grateful to the president, the state counselor (Suu Kyi) and also the cabinet, for making that happen.”

Darzi has been a member of an advisory commission that was formed in 2016 to see through the advice from a panel headed by former U.N. chief Kofi Annan on solving the long-running conflict in Rakhine.

Reporting by Poppy McPherson, Michelle Nichols in NEW YORK; Editing by Alex Richardson, Robert Birsel and Nick Macfie