Egypt's interim president Adly Mansour has appointed Hisham Barakat as prosecutor-general.
Barakat, 63, who was among three nominations given to the presidency by the Supreme Judicial Council, was sworn in by the interim president on Wednesday.
Former prosecutor-general Abdel-Meguid Mahmoud announced his resignation on Friday, just one day after being reinstated to the position, to “avoid the embarrassment of making judicial decisions against those [i.e. Muslim Brotherhood members] who removed me from office.”
Investigations will begin soon into ousted president Mohamed Morsi and nine other senior Brotherhood members on charges of "insulting" the judiciary.
On 2 July, an appeal court upheld a lower court's decision to dismiss Talaat Abdullah, who had replaced Mahmoud as prosecutor-general in November 2012. On the same day a separate verdict confirmed Mahmoud's dismissal from the post.
The Supreme Judicial Council chose to implement the first verdict dismissing Abdullah, while ignoring the second verdict that confirmed Mahmoud's dismissal.
Adly Mansour, the head of the High Constitutional Court, was sworn in as interim president on Thursday.
Hisham Barakat was the head of the technical office of the president of the Cairo Appeal Court.