Hosni Mubarak was President for almost 30 years. He served from 1981 until he resigned in 2011 during the Egyptian Revolution.