Its origin dates back to the Islamic period. The documented history begins in the thirteenth century, during the reconquest of Mallorca, with its Castillo de Alaro being the center of this. The Castillo de Alaro was built by Christian inhabitants to ward off invasions from pirates.