King James II of Majorca built the castle as a royal residence, with work between 1300 and 1311 and 1311 in the infobox. Pere Salvà built part of the fortification with other master masons. The article calls the style Gothic with clear Islamic influences in its original design.
The plan is circular, with a surrounding wall, an inner yard, three minor towers and a principal tower, or donjon, joined by a high bridge over a moat. The infobox gives Marès stone, and the article says rock quarried from the hill has caused cracks.
It resisted sieges in 1343 and 1391 and fell once, in 1521. From the 18th to the mid-20th century it served as a military and political prison. The Spanish Second Republic gave it to the city in 1931, and it has been a museum since 1932, becoming the city's History Museum after a restoration in 1976.

Comments