The position was created after the Egyptian Revolution of 1952; Mohammed Naguib was the first to hold the position. Before 2005, the Parliament chose a candidate for the presidency and the people voted, in a referendum, whether or not they approve the proposed candidate for president. After the Egyptian Revolution of 2011, a new presidential election was held 2012, it was the first free and fair elections in Egypt's political history. After a wave of public discontent with autocratic excesses of the Muslim Brotherhood government of President Mohamed Morsi; the beginning of July 2013 marked the announcement, by General Abdel Fattah el-Sisi, of the removal of Morsi from office. El-Sisi then was himself elected head of state in the 2014 presidential election.