CAIRO — An Egyptian court on Saturday sentenced to death the deposed president, Mohamed Morsi of the Muslim Brotherhood, along with more than 100 others, for fleeing prison during the 2011 revolt against President Hosni Mubarak.

Mr. Morsi’s conviction is the latest sign of the undoing of the uprising that overthrew Mr. Mubarak. Mr. Morsi, who was Egypt’s first freely elected leader, now faces the death penalty for escaping extralegal detention — a form of detention that many Egyptians hoped would be eliminated by the revolution.

If carried out, the sentence could make Mr. Morsi a martyr to millions of Islamists in Egypt and around the world. In a statement about the sentencing, Amr Darrag, a Muslim Brotherhood leader who was a cabinet minister under Mr. Morsi, said it was “one of the darkest days of Egyptian history” and a symbol “of the dark shadow of authoritarianism that is now cast back over Egypt.”

Judge Shaaban el-Shami issued the ruling in a courtroom in a converted auditorium on the grounds of a police academy on the outskirts of Cairo. Mr. Morsi, wearing a blue prison uniform, stood inside a metal and glass cage built in the courtroom. Some of his co-defendants, including other senior Brotherhood leaders, also appeared in the cage.