Egypt's ex-President Hosni Mubarak has been sentenced to life in prison after a court convicted him on charges of complicity in the killing of protesters during last year's uprising that forced him from power.
Mubarak is the first Arab leader to be tried by his own people in the country.
The sentence was handed down in a Cairo court.
Thousands of riot police cordoned off the building to prevent protesters and relatives of those killed during the uprising from getting too close.
Hundreds stood outside, waving Egyptian flags and chanting slogans demanding "retribution." Some spread Mubarak's picture on the asphalt and walked over it.
The trial has mesmerised the nation, with images of Mubarak lying on a hospital gurney inside a defendants' cage of iron bars and barbed wire taken by most Egyptians to symbolise both their triumph over tyranny and the humiliation of a dictator who ruled for close to 30 years.
But the joy that followed Mubarak's removal on February 11, 2011, has turned to disappointment after more than a year of turmoil, with protesters challenging the military rulers who took the reins of the country, a rise in crime and an economic decline.
The verdict also comes as political tensions are high ahead of a heated run-off for president that pits Mubarak's last prime minister Ahmed Shafiq against the Muslim Brotherhood's candidate Mohammed Morsi.
Mubarak's two sons - Gamal and Alaa - were acquitted on corruption charges.
Scuffles broke out in the Cairo courtroom after the verdicts were announced.