Revolt of the Brotherhoods
The castle originally served as a residence for the Kings of Mallorca whenever they were not staying in mainland Europe, and was subsequently seldom used as a residence for viceroys during the 17th century. As a fortification, it suffered and successfully resisted two sieges during the Middle Ages; the first of them in 1343, during Peter IV of Aragon's campaign to reincorporate the Majorcan territories to the Crown of Aragon, and then again in 1391 during an anti-semitic peasant revolt. The castle has only fallen once in its history into enemy hands, in 1521 after an assault during the Majorcan seconds Revolt of the Brotherhoods.