CAIRO: Egypt’s justice minister resigned on Monday after raising a public uproar by saying in a TV interview that the children of sanitation workers are too lowly to become judges.

The Sunday night comments by the minister, Mahfouz Saber, brought a heavy backlash on social media from Egyptians denouncing elitism and what some saw as the arrogance of Egypt’s judiciary, already under criticism for harsh sentences against government opponents.

Prime Minister Ibrahim Mahlab said in a statement that Saber resigned out of “respect for public opinion.”

In an interview late Sunday with the private TV channel 10, Saber was asked about charges of favoritism in the appointment of judges. When he said appointments are made according to objective standards, the interviewer said, “So the son of a sanitation worker could be made a judge?”

“Let’s not go too far,” Saber replied. “With all due respect to cleaners and those above or beneath them, a judge must hail from an appropriate environment ... Thanks are due to a cleaner who raises and educates his children, but there are other jobs that they can take.”

He said if the children of sanitation workers became judges they would face problems and eventually suffer from depression and leave.

On Monday, the head of Cairo’s garbage collectors, Shahata Muqdis, shot back, telling the Youm Al-Sabea newspaper, “The son of a garbage man can be smarter than your son. And the son of a garbage man won’t be ashamed of his father.”

There were multiple calls for Saber’s resignation. A group of activist lawyers, called Haqaniyah, demanded prosecutors investigate Saber on criminal charges of inciting hatred and violating the constitution.

Saber’s comments were particularly embarrassing since they ran contrary to the image that President Abdel-Fattah El-Sissi has sought to promote of himself as a leader championing the poor and marginalized.