They protected the families living in them from invasions, which were quite common in the region in the 12th and 13th centuries. In case of danger, the residents would take shelter on the upper floors of the tower, pulling up ladders behind them, making it difficult for attackers to get inside.