The Ait Urtajjen, a Berber family related to the Moroccan dynasty of the Wattasids, had their own semi-independent state here from 1430 until 1563.
The town was settled by many Sephardic Jews from Seville, fleeing the wave of anti-Jewish riots in Spain in 1391.
[1] At the end of the 19th and beginning of the 20th century the town was briefly renowned as a centre of Jewish learning, exporting rabbis to many cities in Morocco.
At the beginning of the 20th century the number of Jews was estimated at 1600, who formed roughly a third of the population.
Following the establishment of the French protectorate, with the concomitant rise in security, the majority of the Jewish population gradually emigrated to nearby towns in the plains.