The head of the Judges Disciplinary Board decided Saturday to retire former prosecutor general Talaat Abdallah for alleged spying.
Abdallah, appointed by ousted president Mohamed Morsi, has been accused of placing bugging equipment in the office of the prosecutor general.
The accusations were initially filed by the current prosecutor general, Hisham Barakat, who alleges he found the spying equipment.
Abdallah also faces charges of collaborating with "Judges for Egypt," a group of judges believed to be close to the Muslim Brotherhood, who helped monitor the 2012 presidential elections won by Morsi.
Abdallah is accused of collaborating with the group to reveal the 2012 election results ahead of a formal announcement.
Morsi's appointment of Abdallah, replacing Abdel-Meguid Mahmoud, was condemned by judges who argued the move was illegal on the grounds that only the Supreme Judiciary Council had the authority to appoint the prosecutor general.