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
Muslim Brotherhood in Egypt more radical Qutb-inspired Islamist groups blossomed, and after Sadat signed a peace agreement with Israel in 1979, the Muslim Brotherhood became confirmed enemies of Sadat. Sadat was assassinated by a violent Islamist group Tanzim al-Jihad on 6 October 1981, shortly after he had Brotherhood leaders (and many other opposition leaders) arrested. Again with a new president, (Hosni Mubarak), Brotherhood leaders (Supreme Guide Umar al-Tilmisani and others) were released from prison. Mubarak cracked down hard against radical Islamists but offered an "olive branch" to the more moderate Brethren. The brethren reciprocated, going so far as to endorse Mubarak's candidacy for president