Mohamed Morsi took office on 30 June 2012, after being elected by the presidential election held on 23–24 May and 16–17 June 2012. He was deposed by the Egyptian Armed Forces in a coup d'état on 3 July 2013, following massive protests calling for his resignation. He was succeeded by Adly Mansour, the head of the Supreme Constitutional Court of Egypt, as Acting President. Mansour was sworn into office in front of the Supreme Constitutional Court on 4 July 2013.