Egypt's controversial public prosecutor Abdel Meguid Mahmud said Friday he was to resign, days after being reinstated, citing possible conflicts of interest in future prosecutions.

A longtime prosecutor under former dictator Hosni Mubarak, Mahmud had been sacked by now deposed president Mohamed Morsi in November as part of a decree in which the Islamist head of state granted himself sweeping powers.