Cairo - An Egyptian court on Wednesday sentenced Muslim Brotherhood leader Mohammad Badie and his deputy Khairat Al Shater to life in prison, judicial sources said, in a retrial over violence during the overthrow of Islamist president Mohammad Mursi in 2013.

The sentence is one among several trials and retrials against Badie, Shater and other leaders of the party that ruled Egypt before the military ousted Mursi following mass protests against his rule.

Badie and Shater were sentenced to life in 2015 over violence between Brotherhood supporters and opponents near the group’s headquarters.

Four others were also handed life sentences on Wednesday.

The court acquitted Saad Al Katatny, parliament speaker under Mursi, along with a former minister, two prominent Brotherhood figures and two others.

The defendants can appeal the ruling for the last time before the Court of Cassation, Egypt’s highest civilian court.

The public prosecution may also appeal the acquittals or the life sentences that two defendants received instead of death sentences.

The defendants faced charges of inciting violence against the demonstrators in front of the Brotherhood headquarters, aggravated battery and the possession of firearms.

Authorities had referred 18 defendants to trial in the case.

Five remain at large and one died before receiving a sentence.

The latest retrial began when the Court of Cassation accepted 13 defendants’ appeals in January 2016.

Separately on Wednesday, two security sources and a judicial source said authorities arrested a justice minister under Mursi and are investigating him for belonging to an illegal group.

The security sources said National Security Agency officers arrested Ahmad Sulaiman at his home in Minya governorate on Tuesday and later transferred him to Cairo.

Sulaiman had criticised the arrest and trial of Brotherhood leaders after Mursi was ousted.