Nasser hospital in Khan Younis was attacked by Israeli army for over a week in February, saying Hamas was holding hostages there
Mubarakcould have been sent to the gallows as demanded by the prosecution.
Both the toppled dictator’s defence team and lawyers representing his victims said the verdict could easily be appealed.
The verdict prompted outrage inside and outside the courtroom, with protesters staging rallies in Cairo, Alexandria and other Egyptian cities.
“Either we get justice for our martyrs or we die like them!” chanted those gathered in Cairo’s Tahrir Square.
The Muslim Brotherhood’s presidential candidate Mohammed Mursi said the revolution must continue.
“All of us, my brothers, must realise in this period that the continuation of the revolution, and the revolutionaries’ staying put in their positions in the squares, is the only guarantee to achieve the goals,” he told reporters before joining the crowds in Tahrir Square for around 15 minutes.
Judge Ahmed Refaat sentenced Mubarak, 84, and his interior minister Habib Al Adly to life for their role in the deaths of more than 800 protesters during the revolt that ousted them, but acquitted the six security commanders on the same charges.
A senior member of Mubarak’s defence team said the former strongman will appeal.
A tearful Mubarak, who enjoyed near absolute power for three decades, was flown to Tora prison on Cairo’s outskirts after the verdict but then refused to leave the aircraft.
A security official said Mubarak “suffered from a surprise health crisis” but was finally convinced to return to his cell.
Chants of “Void, void” and “The people want the judiciary purged” erupted after the sentencing, as furious lawyers said they feared Mubarak would be found innocent on appeal.
Offices of presidential candidate Ahmad Shafiq, Mubarak’s last prime minister, were attacked early Sunday in two provincial towns, a security services official said.
Shafiq’s campaign headquarters in Cairo had already been attacked on Monday.
Thousands marched on Tahrir Square, epicentre of the protests that toppled Mubarak, chanting against the judiciary and the military council that took power when he quit.
There were similar rallies in the Mediterranean city of Alexandria and other parts of Egypt, where many were in shock at the police chiefs’ acquittal.
Rights groups also slammed the verdict.
Mubarak’s sentence “is a significant step towards combatting long-standing impunity in Egypt” but the security chiefs’ acquittal “leaves many still waiting for full justice,” Amnesty International said.
Human Rights Watch Cairo-based researcher Heba Morayef said “the verdict fails to deliver justice, it fails to deter police from future abuse and it comes against the backdrop of acquittals in police trials.”
Corruption charges against Mubarak’s sons, Alaa and Gamal, were dropped because of the expiry of a statute of limitations, and the ex-president was acquitted in one of the graft cases.
But Alaa and Gamal will stay in prison because they are on trial in another case.
“We will appeal. The ruling is full of legal flaws from every angle,” Yasser Bahr, a senior member of Mubarak’s defence team, said.
“We will win, one million percent,” he added.
Mubarak, in dark sunglasses and wearing a beige track-suit, had his arms folded and showed no emotion inside the caged dock as Refaat read the verdict.
His sons, however, appeared close to tears.
“It’s vindicating to Egyptians to see Mubarak and his interior minister sentenced to life, but the verdict raises more questions than answers,” said Hossam Bahgat, the director of the Egyptian Initiative for Personal Rights.
In delivering the ruling, Refaat painted a grim picture of life under Mubarak, listing hardship after hardship during his three-decade rule.
Refaat said the protesters who joined the uprising were “peaceful” and wanted only “justice, freedom and democracy.”
Clashes erupted outside the courtroom after the sentencing, with police using stun grenades against angry crowds.
Egypt has been ruled by the military since Mubarak was forced out on February 11 last year after 18 days of nationwide protest.
Nasser hospital in Khan Younis was attacked by Israeli army for over a week in February, saying Hamas was holding hostages there
The President was speaking at a graduation ceremony at Morehouse College in Atlanta, Georgia
Martin Griffiths says battles near the Rafah and Kerem Shalom crossings in Gaza's south meant the vital routes are effectively blocked
The military launched a crackdown on the Rohingya minority there in 2017 which is now the subject of a United Nations genocide court case
Fresh signs of a cooling economy calmed inflation worries
Ferrari's Charles Leclerc took third in the seventh round of the season
Six people including 90-year-old former Air Force pilot Ed Dwight will blast off to space from the Launch Site One base in west Texas
Usyk is the first boxer to become undisputed heavyweight champion since Lennox Lewis beat Evander Holyfield in 1999