Its origins are thought to be linked to the establishment of an observation post of the Almoravids to control Christian incursion on this part of the Tunisian coast.