From the late medieval and early modern period onwards Jews, the only remaining dhimmi, were increasingly confined to ghettolike quarters, such as the mellah in Morocco, the hara in Algeria and Tunisia and the qa'a in Yemen.
Though it was probably founded in order to protect and not to punish the Jews, they resented the transfer and viewed it as bitter exile and manifestation of a painful segregation.
From the Jewish point of view, concentration of Jews within a limited area offered a level of protection from outside influences or mob violence.
In the English city of Norwich, the Jewish quarter was close to the castle, as a source of protection in times of local pogroms.
According to USHMM archives, "The Germans established at least 1,000 ghettos in German-occupied and annexed Poland and the Soviet Union alone.