In Morocco, beginning in the 15th century, Jewish people were segregated in "mellahs". In cities, a "mellah" was a separate area for Jews, surrounded by a wall with a fortified gateway. Rural "mellahs" were separate villages where only Jews lived.