An Egyptian court on Monday convicted three journalists from Al-Jazeera English and sentenced them to seven years in prison each on terrorism-related charges in a case that has brought an outcry from rights groups.

The sentences were handed down against Australian correspondent Peter Greste, Canadian-Egyptian acting Cairo bureau chief Mohammed Fahmy, and Egyptian producer Baher Mohammed, who also received an extra three years in prison on separate charges.

“I swear they will pay for this,” Fahmy shouted angrily from the defendants’ cage after the sentences were announced. Greste raised his fists in the air.

“They just ruined a family,” said Fahmy’s brother Adel, who was attending the session. He said they would appeal the verdict but added that he had little faith in the system. “Everything is corrupt,” he said.

The judge also handed 10-year sentences to two British journalists and a Dutch journalist who were not in Egypt and being tried in absentia. Two defendants among 14 others on trial in the case were acquitted, including the son of Mohammed el-Beltagy, a senior figure in the Muslim Brotherhood.

Greste, Fahmy and Mohammed were arrested in December in a raid on the Cairo hotel room they were using as an office, as part of a sweeping crackdown on Islamist supporters of ousted President Mohammed Morsi.

They were accused of supporting Morsi’s Muslim Brotherhood, which the authorities have declared a terrorist organization. They also face charges of fabricating footage to undermine Egypt’s national security and make it appear the country was facing civil war. The prosecution has offered little evidence to back up the charges against them.

The three and their supporters have said they were simply doing their jobs as journalists, covering the wave of protests led by the Brotherhood against the military-backed government installed after Morsi’s ousted on July 3 by then-army chief Abdel-Fattah el-Sissi, who is now the president. The police crackdown on the protests has killed hundreds and put thousands more in prison.

British ambassador James Watt, also attending, said he was “very disappointed” by the verdict. “Freedom of expression is fundamental to any democracy,” he said.

The other defendants were mainly students, arrested separately, accused of providing the Al-Jazeera journalists with footage along with a variety of other charges, including belonging to the Brotherhood.