An Egyptian court on Sunday ordered a retrial for former president Hosni Mubarak after accepting an appeal against the life sentence handed him for his involvement in the deaths of protesters in 2011.
Mubarak, 84, his two sons Alaa and Gamal, his former interior minister Habib al-Adly and top security chiefs will now face a new trial, the Court of Cassation, the top appeals court, said after a very brief hearing.
The ruling was met with cries of "Long live justice!" by Mubarak supporters who held up the former strongman's picture and hugged each other in the courtroom, with dozens more outside shouting "We love you, president!"
Mubarak, his sons and Adly will remain in jail, however, as they still face separate cases.
Judge Ahmed Ali Abdelrahman told the court he had accepted the appeals by Mubarak, Adly and the prosecution, thereby cancelling all previous rulings by the Cairo criminal court.
A date has still to be set for the new trial, judicial sources said.
Sunday's ruling was "expected after a flawed and disappointing trial," prominent rights group, the Egyptian Initiative for Personal Rights (EIPR) said in a statement.
Mubarak's epic fall from grace, from the dictatorial head of the Arab World's most populous nation to a defendant behind bars, was for many a promising sign that the revolution that toppled him was on the right track.
But the case against the former president verged on the farcical, with patchwork evidence and prosecution witnesses exonerating the defendants, legal experts said.
"The trial was a disappointment since the start of investigations and until the verdict. Despite popular optimism that justice was close... what we saw were superficial interrogations marred by negligence," said Hoda Nasrallah, a lawyer with EIPR.
The biggest shock, she said, was that the verdict cleared the security services of any responsibility and found no one directly guilty of the killings.
Signup to our newsletter and follow us on Facebook and Twitter!
EIPR urged the new court to "avoid the mistakes" of the first court hearing and called for the guarantee of a fair trial.
Sunday's ruling comes less than two weeks before the second anniversary of the start of the popular uprising that unseated Mubarak and paved the way for the election of the country's first Islamist president, Mohamed Morsi.
On June 2, Mubarak and Adly were sentenced to life in prison for failing to prevent the deaths of over 800 protesters during the 18-day uprising that began on January 25, 2011.
Six security chiefs on trial in the same case were acquitted at the time.
Mubarak and his two sons, Gamal and Alaa -- once the symbols of power and wealth in the country -- were acquitted on corruption charges due to the expiry of a statute of limitations.
The rulings sparked nationwide outrage, with thousands taking to the streets to vent their anger that no one had been found directly guilty of killing the protesters.
On Saturday, an ailing Mubarak was interrogated over fresh charges of corruption and ordered detained for 15 days pending investigation.
He is accused of accepting gifts worth seven million Egyptian pounds (around $1 million) from the country's flagship state newspaper Al-Ahram.
Following sentencing in June last year, Mubarak was moved to Tora prison in south Cairo after spending 16 months in hospitals in the Red Sea resort of Sharm el-Sheikh and then in Cairo.
His health collapsed and the state news agency even reported him clinically dead at one point as he slipped into a coma.
He has since suffered several health scares and is currently being treated for fractured ribs and fluid in the lungs at a military hospital in Cairo.
Until anti-government protests erupted on January 25, 2011 Mubarak had seemed untouchable as president of the most populous nation in the Arab world, backed by the United States and the military, from whose ranks he had emerged.