Hosni Mubarak almost thirty years, making him Egypt's longest-serving ruler since Muhammad Ali Pasha, who ruled the country from 1805 to 1848, a reign of 43 years. Mubarak stepped down after 18 days of demonstrations during the Egyptian Revolution of 2011. On 11 February 2011, Vice President Omar Suleiman announced that Mubarak had resigned as president and transferred authority to the Supreme Council of the Armed Forces. On 13 April 2011, a prosecutor ordered Mubarak and both of his sons (Alaa and Gamal) to be detained for 15 days of questioning about allegations of corruption and abuse of power. Mubarak was then
Hosni Mubarak because he believed it would probably lead to chaos. President Mubarak was re-elected by majority votes in a referendum for successive terms on four occasions: in 1987, 1993, and 1999. Previously, Mubarak secured his position by having himself nominated by Parliament then confirmed without opposition in a referendum. The September 2005 ballot was a multiple-candidate election rather than a referendum, but the electoral institutions and security apparatus remain under the control of the President. On 28 July 2005, Mubarak announced his candidacy. The election was scheduled for 7 September 2005; according to civil organizations that observed the election it was