Hosni Mubarak, the Egyptian leader who for nearly 30 years was the resolute face of stability in the Middle East, has died at 91 years old, the country's state television says.
Throughout his rule, he was a stalwart US ally, a bulwark against Islamic militancy and guardian of Egypt's peace with Israel.
But to the tens of thousands of young Egyptians who rallied during 18 days of unprecedented street protests in Cairo's central Tahrir Square and elsewhere in 2011, Mr Mubarak was a relic, a latter-day pharaoh.
They were inspired by the Tunisian revolt and harnessed the power of social media to muster tumultuous throngs, unleashing popular anger over the graft and brutality that shadowed his rule.

President Anwar Sadat, right, and Vice President Hosni Mubarak watch a parade just before soldiers opened fire, killing President Sadat. Source: AP
In the end, with millions amassed in Cairo's Tahrir Square and city centres around the country and even marching to the doorstep of Mr Mubarak's palace, the military that long nurtured him pushed him aside on 11 February, 2011.
The generals took power, hoping to preserve what they could of the system he headed.
Though Tunisia's president fell before him, the ouster of Mr Mubarak was the more stunning collapse in the face of the Arab Spring shaking regimes across the Arab world. He became the only leader so far ousted in the protest wave to be imprisoned.
He was convicted along with his former security chief in June 2012 and sentenced to life in prison for failing to prevent the killing of some 900 protesters during the 18-day who rose up against his autocratic regime in 2011.

A wounded demonstrator carries a poster in Cairo. Source: AP
Both appealed the verdict and a higher court later cleared them in 2014.
The acquittal stunned many Egyptians, thousands of whom poured into central Cairo to show their anger against the court.