The legal adviser to Egypt's President Mohamed Morsi has resigned during a political battle over the judiciary that has polarized Egyptian politics.
In a letter of resignation made public Tuesday, Mohammed Foud Gadallah said he was quitting in protest at what he called an attempt to undermine the independence of Egypt's judiciary.
The presidential adviser also complained there was "no clear vision" in running state affairs. He accused the Muslim Brotherhood of monopolizing decision-making and encroaching on the president and governing.
Egypt's secular and liberal opposition has condemned Islamist-proposed legislation that would impose mandatory retirement on judges at age 60 instead of 70. The measure would force out many senior judges who have angered the Islamists by annulling election laws and acquitting officials who served under ousted president Hosni Mubarak.
The Muslim Brotherhood recently staged a mass demonstration in Cairo to demand a "purification" of the judiciary. But now it also has referred the draft bill to a parliamentary committee for further study.