Ali Zeidan
Magariaf was elected President of the General National Congress (GNC) on 9 August 2012. He received 113 votes in Congress against 85 votes for his independent rival, Ali Zeidan who went on to become Prime Minister in November. After serving as President for 9 months he resigned in May 2013 in anticipation of the political isolation law which was passed, barring him from office due to his previous role as an ambassador under the Gaddafi regime.