30 years
Hosni Mubarak is the previous president of Egypt.
Whether a national leader is viewed as "bad" or inadequate in the performance of their duties is often reported as fact when it is mostly based on opinion. A quick check of one resource available...
He keep interfering with elections and laws, and dealing ruthlessly with opponents to keep their power.
Yes, Hosni Mubarak is a dictator, he has been in power since 1981 and has "emergency law" on since then.