 In the wake of the Arab Spring, the military was seen as restoring order to the Middle East’s largest Arab country.This allowed Egypt to repurpose its security apparatus, making it the sole arbiter of Egypt’s economic and political system at a time when the country was still in transition.The mass protests of the Arab Spring led to the 11February 2011 resignation of former Egyptian president Hosni Mubarak and sparked largescale economic changes.Mubarak's National Democratic Party was replaced temporarily by military rule until June 2012 when Mohamed Morsi was elected on behalf of the Muslim Brotherhood.