The Egyptian president has pardoned two journalists for Al-Jazeera English and dozens of human rights activists.
The pair - Canadian journalist Mohamed Fahmy and Egyptian national Baher Mohammed - are due to be released later in the day.
A tweet from Mr Fahmy's account read: "Thank you to all the supporters sending us the news, we have heard and are very happy. AJ Staff is Free!"
"I don't know what to say. It is done. Thank God, thank God," said Mr Fahmy's brother Adel.
Three journalists were sentenced to three years in prison last month for airing what a court described as "false news" and biased coverage.
Prominent Egyptian activists Yara Sallam and Sanaa Seif were among about 100 people pardoned by President Abdel-Fattah el-Sissi on the eve of the major Muslim holiday of Eid when Egyptian presidents usually pardon convicts for health or other reasons.
The pardon also comes a day before Mr el-Sissi is to travel to New York to attend the UN General Assembly.
Mr Fahmy's lawyer, Khaled Abu Bakr, confirmed the pardon and said he hopes it will be "repeated with many others jailed".
"I was sure the president was going to issue such a decision. Mohammed is a professional and innocent journalist," Mr Abu Bakr said. "This decision will have positive impact on the media and international level."
The long-running trial of three Al-Jazeera staff - Australian Peter Greste was freed earlier this year - is entangled in the wider political conflict between Egypt and Qatar, where Al-Jazeera is based, following the Egyptian army's 2013 ouster of Islamist president Mohammed Morsi, a Muslim Brotherhood member.
The case began in December 2013, when Egyptian security forces raided the hotel suite used by Al-Jazeera at the time to report from Egypt.
The journalists began using the hotel as a base of operations after the Al-Jazeera English office near Tahrir Square was raided by police.
Authorities arrested Mr Fahmy, Mr Greste and Mr Mohammed, later charging them with allegedly being part of Mr Morsi's Muslim Brotherhood, which authorities have declared a terrorist organisation, and airing falsified footage intended to damage national security.
The three men initially were convicted on June 23 2014, with Mr Greste and Mr Fahmy sentenced to seven years in prison and Mr Mohammed to 10 years for also being found with a spent bullet casing.
That ruling was later overturned on appeal by Egypt's Court of Cassation, which said the initial proceedings were marred by violations of the defendants' rights, but a retrial was ordered, ending with last month's convictions.
A spokeswoman for the Canadian foreign affairs department, Rachna Mishra, said Canada was "pleased" with the pardon and "will assist to facilitate his departure from Egypt. We look forward to Mr Fahmy reuniting with his family and loved ones, and his return to Canada."
Mr Fahmy gave up his Egyptian nationality during the trial in hopes of being deported to Canada.
The pardons were given to 100 people "who have received final prison verdicts in cases related to breaking a protest law or infringing on the police forces' actions, in addition to a number of health-related and humanitarian cases", the president's office said in a statement.
Why are you making commenting on The Herald only available to subscribers?
It should have been a safe space for informed debate, somewhere for readers to discuss issues around the biggest stories of the day, but all too often the below the line comments on most websites have become bogged down by off-topic discussions and abuse.
heraldscotland.com is tackling this problem by allowing only subscribers to comment.
We are doing this to improve the experience for our loyal readers and we believe it will reduce the ability of trolls and troublemakers, who occasionally find their way onto our site, to abuse our journalists and readers. We also hope it will help the comments section fulfil its promise as a part of Scotland's conversation with itself.
We are lucky at The Herald. We are read by an informed, educated readership who can add their knowledge and insights to our stories.
That is invaluable.
We are making the subscriber-only change to support our valued readers, who tell us they don't want the site cluttered up with irrelevant comments, untruths and abuse.
In the past, the journalist’s job was to collect and distribute information to the audience. Technology means that readers can shape a discussion. We look forward to hearing from you on heraldscotland.com
Comments & Moderation
Readers’ comments: You are personally liable for the content of any comments you upload to this website, so please act responsibly. We do not pre-moderate or monitor readers’ comments appearing on our websites, but we do post-moderate in response to complaints we receive or otherwise when a potential problem comes to our attention. You can make a complaint by using the ‘report this post’ link . We may then apply our discretion under the user terms to amend or delete comments.
Post moderation is undertaken full-time 9am-6pm on weekdays, and on a part-time basis outwith those hours.
Read the rules hereComments are closed on this article