An Egyptian court has sentenced 64 people to varying prison terms and one man to death over violence in 2013 when the military overthrew the elected Islamist president.

The Sunday decision by the Minya Criminal Court included a life sentence for Mohammed Badie, over events in the city of el-Adwa, south of Cairo, where a crowd raided a police station and a sergeant was killed.

The case ran for over three years included more than 35 hearings, with testimony by the defence and witnesses.

The death sentence, issued to a man named Ahmed Ashour, will now be reviewed by Egypt's top religious authorities for their non-binding opinion. The ruling can still be appealed.