CAIRO (AP) — An Egyptian appeals court on Sunday overturned Hosni Mubarak's life sentence and ordered a retrial of the ousted leader in the killing of hundreds of protesters, a ruling likely to further unsettle a nation still reeling from political turmoil and complicate the struggle of his Islamist successor to assert his authority.
The court's decision put the spotlight back on the highly divisive issue of justice for Mubarak and his top security officers, who were also ordered retried, two years after the revolution that toppled him.
The ruling poses a distraction for President Mohammed Morsi as he tries to restore law and order, grapple with a wrecked economy and deal with the aftermath of the worst political crisis since Mubarak's ouster.
A new trial is virtually certain to dominate national headlines, attracting attention away from a crucial election for a new house of deputies roughly three months from now. Morsi and his Islamist allies are determined to win a comfortable majority in the new chamber, allowing them to take the helm of the most populous Arab nation.
The ailing 84-year-old Mubarak is currently being held in a military hospital and will not walk free after Sunday's decision. He remains under investigation in an unrelated case.
A small crowd of Mubarak loyalists erupted into applause after the ruling was announced. Holding portraits of the former president aloft, they broke into chants of "Long live justice!" Another jubilant crowd later gathered outside the Nile-side Cairo hospital where Mubarak is being held, passing out candies to pedestrians and motorists.
Still, the crowds paled in comparison to the immediate reaction to Mubarak's conviction and sentencing in June, when thousands took to the streets, some in celebration and others in anger that he escaped the death penalty.
Sunday's muted reaction indicates the fate of Egypt's ruler of nearly three decades may have, at least for now, been reduced to a political footnote in a country sagging under the weight of a crippling economic crisis and anxious over its future direction under the rule of Islamists.
No date has been set for the retrial, but attention is sure to dramatically pick up when it begins and Egyptians again watch fascinated by the sight of their country's one-time strongman behind bars in the defendants' cage.
If convicted, Mubarak could face a life sentence or have it reduced. He could also be acquitted. Under Egyptian law, a defendant cannot face a harsher sentence in a retrial, meaning the former leader cannot face the death penalty.
The Court of Cassation did not immediately disclose its reasoning, but legal experts said the appeal was granted over a series of procedural problems in the conduct of the original trial.
The ruling had been widely expected. When Mubarak was convicted in June, the presiding judge criticized the prosecution's case, saying it lacked concrete evidence and failed to prove the protesters were killed by the police.
Gamal Eid, a prominent rights lawyer, said the new trial could include new defendants and the judge ordering additional investigations.
Mubarak's defense lawyers had argued the ex-president did not know of the killings or realize the extent of the street protests. But a fact-finding mission recently determined he watched the uprising against him unfold through a live TV feed at his palace.
The mission's report could hold both political opportunities and dangers for Morsi and his fundamentalist Muslim Brotherhood. A new trial would be popular, since many Egyptians were angered that Mubarak was convicted of failing to stop the killings, rather than ordering the crackdown in which nearly 900 people died.
The report also implicates the military and security officials in the protesters' deaths. Any move to prosecute them could spark a backlash from the powerful police and others who still hold positions under Morsi's Islamist government.
In Sunday's ruling, the judge also ordered a retrial of Mubarak's former security chief, Habib el-Adly, convicted and sentenced to life in prison on the same charges, as well as six of el-Adly's top aides. All six were acquitted in the earlier trial.
The appeals court also granted the prosecution's request to overturn not-guilty verdicts on Mubarak, his two sons and an associate of the former president, Hussein Salem, on corruption charges. Salem was tried in absentia and remains at large.
The prosecutors in the Mubarak trial complained that security agencies and the nation's top intelligence organization had not cooperated with their investigation, leaving them with little incriminating evidence against the defendants. During the trial, prosecutors focused their argument on the political responsibility of Mubarak and el-Adly.
Morsi, Egypt's first freely elected president, has his plate full with a rapidly worsening economy, stinging media criticism and the fallout from the worst political crisis since Mubarak's ouster, first over decrees that gave him almost unrestricted powers and then by a constitution hurriedly adopted by his Islamist allies and ratified in a nationwide referendum last month.
Since coming to office six months ago, Morsi has had to deal with a slide in the nation's currency against the U.S. dollar, shrinking foreign reserves and a tourism sector in a deep slump. Politically, Egypt is deeply divided by the bitter rivalry between his camp of Islamists and an opposition led by liberals and secularists.
Clashes between the two sides left at least 10 people dead and hundreds wounded last month.
Morsi was given a thinly veiled reprimand Sunday by the president of the European Union, Herman van Rompuy, who told a news conference in Cairo that only "consensus building, inclusiveness and dialogue among all parties" could ensure Egypt's successful transition to a "deep and sustainable democracy."