Egypt's justice minister has resigned, following demands from Islamist supporters of President Mohammed Mursi for the "cleansing" of the judiciary, BBC News reported.
Ahmed Mekky was seen as a supporter of judicial independence during former President Hosni Mubarak's rule. He threatened to quit last year after the president adopted broader powers.
Thousands of pro-Mursi supporters demonstrated on Friday, April 19 calling for those linked to the former regime to be removed from judicial posts. The protests turned violent as the demonstrators clashed with opponents.
In his resignation letter, Mekky stated that the rallies earlier this week had led to his decision. The presidency has so far not commented on the announcement.
Mekky was also said to have voiced his concern about attempts to pass a new bill which critics argue would give the Muslim Brotherhood-dominated government greater control over the judiciary.
The bill envisages the lowering of the retirement age of judges - a measure that would mean the forced retirement of some 3,000 judges.
The offer of resignation comes a day after President Mursi announced his plans to reshuffle the cabinet.
Mursi has faced a range of problems since he took office in June 2012 after Egypt's first post-Mubarak presidential election.
As well as a simmering feud with the judiciary, pro-reform protests in Cairo have continued, with deaths during anti-Mursi protests marking two years since the fall of Mubarak.
The president has also been accused of failing to hold officials accountable for alleged crimes carried out during the Mubarak years.
There was a wave of unrest in January after the imposition of death sentences on 21 people over football violence.
Political progress has been slow in Egypt, with parliamentary elections scheduled for this spring now postponed with no new date set.