Hosni Mubarak is the fourth President of Egypt, and he is the longest-serving president in the history of Egypt, serving from 1981 to 2011, making it a total of 30 years in power. He fell from power after 18 days of violent demonstration against his rule and on 11 February, Vice-President Omar Suleiman announced that Mubarak had resigned as president and and transferred power over to the Supreme Council of the Armed Forces.
Mubarak, after completing his high school education, joined the Egyptian Military Academy where he received a Bachelor's Degree in Military Sciences in 1949. Then he left the Military Academy and joined the Air Force Academy in 1950, eventually receiving a Bachelor's Degree in Aviation Sciences. From here, we can therefore see that Mubarak is actually extremely smart. However, Mubarak may not have been a good president maybe because he was unprepared to be the President and therefore might not have actually planned what he wanted to do in Egypt when he assumed the important position. This is because became the President in October 1981 when the then President, Sadat, was assassinated.
While Mubarak was in office, political corruption in his Ministry of Interior rose dramatically. This was because of increased power of the institutional system that is necessary to secure the prolonged presidency. The corruption led to many negative effects such as imprisoning of political figures and young activists without trials, illegal undocumented hidden detention facilities, and rejecting universities, mosques and newspapers staff members based on political inclination. Even worse, each individual officer was allowed to violate citizen's privacy in his area using unconditioned arrests due to the emergency law. I guess that it was because of this that the citizens became unhappy with Mubarak's rule, and apparently he was not well-liked, because he survived assassination a total of 6 times!! Examples are like the time in June 1995 when there was an alleged assassination attempt involving noxious gas and Egyptian Islamic Jihad while he was in Ethiopia for the conference of the Organization on African Unity. Mubarak was also reportedly injured by a knife-wielding assailant in Port Said in September 1999.
I think that as the years grew, the unrest in Egypt among the citizens increased until they could not take it anymore and therefore stood up and demonstrated violently. This should be because Mubarak was constantly re-elected by majority votes. However, why should the citizens want to re-elect when there was so much corruption going on under his rule?? The answer is that the citizens did not vote for him since they hated him so much. However, there was no one else to vote. Due to a restriction in the Egyptian constitution in which the People's Assembly played the main role in electing the President of the Republic. So the people did not have any veto powers or even the power to vote. Naturally, their frustration grew until they could not handle that frustration anymore and then took it out on Mubarak.