An Egyptian court released a detailed ruling Sunday on why it sentenced three Al-Jazeera English journalists — including Canadian citizen Mohamed Fahmy — to three years in prison for airing what it described as "false news" and biased coverage, a case long criticized by press freedom advocates and others.

The ruling, published by the state news agency MENA, says the three men — Fahmy, Australian journalist Peter Greste and Egyptian producer Baher Mohamed — were by default members of the banned Muslim Brotherhood group, which Egyptian authorities consider a terrorist organization.

"It has been proven beyond reasonable doubt that the Al-Jazeera media channel has dedicated its broadcasting to the service and support of the Muslim Brotherhood faction and that they have permanently sided with them at the expense of their media ethics," the ruling said. "This provides enough ground for a conviction of belonging to a group based on violations of the law."

Egyptian-born Mohamed Fahmy was released on bail for his retrial after spending more than a year in prison. (Ahmed Abd El Latif, El Shorouk Newspaper/Associated Press)

The ruling also said the three operated without press credentials and secretly worked at the Marriott hotel in central Cairo without a permit. The journalists and the network deny the accusations. Al-Jazeera has said it will appeal.

After last weekend's ruling, Mohamed and Fahmy were imprisoned, while Greste had previously been deported.

Their long-running trial is entangled in the wider political conflict between Egypt and Qatar, where Al-Jazeera is based, following the Egyptian army's 2013 military ouster of Islamist President Mohammed Morsi, a Brotherhood member.

Evidence presented at the trial ventured into the absurd, including music videos and footage of animals, which defence lawyers and even the judge dismissed as irrelevant. Third-party observers say no evidence proved the charges. Critics describe the case as politically motivated.

The men are seeking a pardon from President Abdel-Fattah el-Sissi, who personally expressed regret over the trial and the damage it has done to Egypt's international reputation. He has said it would have been better to simply deport the journalists.

Al-Jazeera had been waiting for Sunday's detailed ruling, which could have been released up to 30 days after the verdict, to appeal.

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 Fahmy, Greste and Mohamed, later charging them with allegedly being part of Morsi's Muslim Brotherhood, which authorities have declared a terrorist organization, and airing falsified footage intended to damage national security.

The three men initially were convicted on June 23, 2014, with Greste and Fahmy sentenced to seven years in prison and Mohamed 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 week's convictions.

The detailed ruling in the initial 2014 conviction said that the journalists had been brought together "by the devil" to destabilize Egypt. The detailed ruling released Sunday made no such reference.