Nationalist movements arose in Egypt in the early 20th century in response to British occupation. Non-violent protests and riots called for independence after World War 1, leading to the formation of the Wafd Party. Britain withdrew in stages between 1922-1936 but maintained influence. Corruption by elite rulers led to further unrest. The Free Officers Movement and Muslim Brotherhood worked to end British influence and the monarchy. Gamal Abdel Nasser led a coup in 1952 and instituted socialist policies and projects to modernize Egypt, but faced economic and military failures. Anwar Sadat and Hosni Mubarak continued reforms and privatization but faced challenges from Islamic fundamentalism and poverty.