Hosni Mubarak survived six assassination attempts during his 30-year rule of Egypt with an iron hand but could not survive the deluge of unprecedented street protests and was brought down by his own people.
Until the outbreak of the grassroot uprising on January 25, 82-year-old Mubarak seemed insurmountable as president of the most populous nation in the Arab world.
When he was elevated to the presidency in the wake of Anwar Sadat's assassination in 1981, few had expected that the little-known vice-president would hold on to the country's top job for so long.
Mubarak, who was lucky to escape when Sadat was assassinated by Islamic radicals at a military parade in Cairo, has survived at least six assassination attempts since then.
The narrowest being in 1995 shortly after his arrival in the Ethiopian capital Addis Ababa to attend an African summit. In the end, he was consumed by people's anger and fury that lasted 18 days.
Mubarak was sworn in on 14 October 1981, eight days after the Sadat assassination.
The former Egyptian Air Force commander, despite having little popular appeal, had managed to hold on to power for three decades by positioning himself as a trusted Western ally to keep peace with Israel.
Throughout his years in power, Mubarak maintained the unpopular policy of peace with Israel and accomodation with the West that cost Sadat his life.
Mubarak, who ruled as a quasi-military leader since he took power, kept the country under emergency law, with sweeping powers to curb basic freedoms in the county.
He argued that draconian laws were necessary to combat Islamist terrorism, that he said would target the country's lucrative tourism sector.
Amid pressure from his powerful ally United States, Mubarak had come under pressure for the first time to encourage democracy in the country.
Mubarak, who won three elections unopposed since 1981, had to change the system to allow rival candidates in his fourth contest in 2005.
Never a smoker or a drinker, he has built himself a reputation as a fit man who leads a healthy life.
In his younger days, close associates often complained of the president's schedule, which began with a workout in the gym or a game of squash.
He had groomed his 40-year-old former investment banker son Gamal Mubarak to become the next leader as he moved steadily up the ranks of the NDP. But the street protests derailed that ambitious plans.
Born in 1928 in a small village at Menofya province near Cairo, Mubarak is married to a half-British graduate of the American University in Cairo, Suzanne Mubarak. They have two sons.