|After the ouster of Egyptian President Mubarak, the interim government led by the Egyptian military scheduled elections for the President. These elections followed earlier elections for the parliament in which Islamist parties won the majority of the votes. During the revolution the Muslim Brotherhood had promised not to have one of their members run in the Presidential elections, but they changed their mind. The initial candidate on behalf the Brotherhood was Khairat El-Shater He was disqualified and as a result Mohamed Morsi Isa El-Ayya,. who received a PhD at the University of Southern California in the United States became their candidate.
Morse was not considered to be a particular good campaigner. In the first round of voting held on May 23-24 2012, Morsi won a plurality of the votes, gaining 24.78 percent of the vote. He faced Ahmed Shafik a candidate of the Egyptian establishment in the second round of the vote. That election was held on June 16-17 2012. In that election Morsi won 51.7 percent of the vote, thus becoming the first freely elected President of Egypt