A Cairo criminal court on Saturday sentenced to death 28 people over the 2015 killing of Egypt's top prosecutor after the death penalty was approved by the country's top religious authority, and it also jailed 15 others for 25 years each.
Public prosecutor Hisham Barakat was killed in a car bomb attack on his convoy in the capital, an operation for which Egypt blamed the Muslim Brotherhood and Hamas. Both groups have denied having a role.
The court had in June recommended passing the death penalty to Egypt's top religious leader, the Grand Mufti, who can approve or reject the recommendation. The mufti's guidance is required when a court seeks the death penalty but his decision is not binding..
The sentences, confirmed by the court in Saturday's hearing, can be appealed.
"The verdicts were shocking today," said one of the defence lawyers, Ahmed Saad. "Others who had nothing to do with the assassination of martyr Hisham Barakat received life sentences. They had nothing to do with the incident."
Egypt's Interior Ministry released a video last year showing several young men confessing and admitting going to Gaza for training from Hamas, but some later denied the charges in court.
The defendants said they were forced to confess under torture and their lawyers asked that they be medically examined.
Egypt faces an extremist insurgency led by Daesh in North Sinai, where hundreds of soldiers and police have been killed. But the group has increasingly targeted Egypt's Christians with church bombings and shooting.