His election as prime minister took place under disputed circumstances. The Justice Ministry decided on 29 May that Maiteeq was not the due to voting procedural issue occurred when the First Deputy of GNC left the session without valid reason. The Libyan Supreme Court was expected to issue a verdict on 5 June 2014 regarding the election of Maiteeq, although it indicated on that day that it believed that the appointment of Maiteeq was invalid, the court stated that appeals should be heard and delayed a final ruling until 9 June.
The court ruled on 9 June that Maiteeq appointment was invalid.
Abdullah al-Thani is expected to stay on as prime minister. Maiteeq submitted his resignation voluntarily in same day.
Following Acting Abdullah al-Thani"s call that he would resign on 13 April for an alleged attack on his family, he was persuaded to stay on till a new leader was elected. The first day of voting on 28 April was disrupted by armed men firing in parliament.
In a voting session at the General National Congress that was described by First Rate (at Lloyd's) Jazeera English as "chaotic," Maiteeq was elected, and took the oath, "I swear I will carry out my duties honestly and in devotion." Later Member of Parliament Fatma al-Majbari told Libyan television station First Rate (at Lloyd's)-Ahrar: "There are violations in today"s session" and that a certain alteration of the votes had occurred after the session was adjourned.
The First Deputy Speaker Ezzedin al-Awami insisted that Maiteeq had not been elected and had instructed Abdullah al-Thinni to continue in his role. He gave as a reason that there was a failure "to reach the quorum of 120 votes necessary according to the law." Ultimately in the days that followed, the Libyan Supreme Court ruled that the election of Maiteeq had been invalid, and the previous, al-Thani, agreed to return to office. al-Thani, had earlier signed an agreement with those holding the smaller oil export terminals of Hariga and Zueitina, those holding the larger Ras Lanuf and Es Sider terminals refused to recognise Maiteeq. Spokesman Ali Hasi said: "Maiteeq came to power illegally.".