An Egyptian court on Tuesday revoked deposed President Mohamed Morsi’s death sentence and ordered a retrial, The Guardian reported. In June 2015, the Muslim Brotherhood leader was sentenced to death by a lower court for his role in jailbreaks during the 2011 uprising against his predecessor Hosni Mubarak.

The Court of Cessation also ordered a retrial for five of Morsi’s Muslim Brotherhood co-defendants and reduced 21 other deaths sentences issued to the party’s members to life imprisonment penalties, The Independent reported. In 2013, Morsi, Egypt’s first democratically elected leader, was overthrown by general-turned-president Abdel Fattah al-Sisi. After his ouster, his political organisation, the Muslim Brotherhood, was declared a terrorist group.

The Muslim Brotherhood leader is serving three jail sentences on charges of killing protesters in December 2012, spying for Qatar, and a life sentence on charges of spying for the Palestinian group Hamas.