Egypt was under foreign occupation for thousands of years until the 1952 revolution led by Naguib that overthrew foreign rule and established the first Egyptian president in thousands of years. Since then, Egypt has been ruled by a series of military presidents including Nasser, Sadat, and Mubarak who consolidated power after the revolution. For more than 50 years, the country has been governed by a military organization or the Supreme Council of the Armed Forces.