Hosni Mubarak was the President of Egypt from 1981 to 2011, serving as the longest-serving president in Egypt's history. He came to power following the assassination of Anwar Sadat and was initially seen as a strong leader who would maintain Egypt's stability. However, his presidency was marked by increasing authoritarianism and economic challenges, leading to the 2011 Egyptian Revolution that ended his rule.