Egypt’s ousted President Mohamed Morsi and more than 100 other people have been sentenced to death over a mass prison break in 2011.
Mohamed Morsi is already serving a 20-year prison term for ordering the arrest and torture of protesters while in power.
Egypt’s religious authorities will now have to give their opinion before the sentence can be carried out.
Mohamed Morsi’s supporters from his Muslim Brotherhood movement have described the charges against him as “farcical”.
He was deposed by the military in July 2013 following mass street protests against his rule.
Since then, the authorities have banned the Muslim Brotherhood and arrested thousands of his supporters.
In a separate case on May 16, an Egyptian court banned football fan clubs known as the Ultras, who played a leading role in protests during the 2011 uprising against then-president Hosni Mubarak.
The former president raised both fists in defiance as the sentences were given.
Many of his 104 co-defendants were Palestinians accused of being members of militant group Hamas, and were charged in absentia.
The court also issued rulings on another case, sentencing 16 Muslim Brotherhood members, including deputy leader Khairat al-Shater, to death on spying charges.
Mohamed Morsi, who also faces espionage charges, will be issued a verdict in that case at a later date.
Hundreds of people have been sentenced to death in a crackdown on the Brotherhood following Mohamed Morsi’s removal in 2013.
However, it is thought that only one such death sentence has been carried out so far.
All death sentences must first be sent to the grand mufti, Egypt’s highest religious authority, for his non-binding opinion on whether they should stand.
Convictions are still open to appeal, even if the grand mufti gives his approval.
The death sentence was condemned by Amnesty International, which said it had become a tool “to purge the political opposition”, and Turkish President Recep Tayyip Erdogan, who likened it to a return to “ancient Egypt”.
Mohamed Morsi was Egypt’s first freely elected president, but protests began building less than a year into his rule when he issued a decree granting himself far-reaching powers.
The armed forces, led by then-military chief Abdul Fattah al-Sisi, ousted Mohamed Morsi in July 2013.
In May 2014, Abdul Fattah al-Sisi became president after securing a landslide victory in presidential elections with a turnout of 46%.