|This article does not cite any sources. (November 2012) (Learn how and when to remove this template message)|
The history of the castle dates back to 1078. It was owned by Counts in the Empúries region. In 1472, during the Catalonian Civil War, the castle was occupied by forces loyal to John II. In 1808, the castle was captured by Napoleonic troops, occupied for several years, and was even fortified as a keep for armaments. Despite the additional fortifications, an explosion ordered by Marshal Suchet during the French withdrawal in 1814 left the castle in ruins, which have degraded further into what is now the current state of the castle.
The surrealist painter, Salvador Dalí, had a deep affection for the castle and was very familiar with it as it is positioned on the road nearly halfway between his home town of Figueres and his coastal home in Cadaqués. He had several ideas for the castle including creating a natural pipe organ in the castle which would have been "played" by the tramuntana wind that constantly blows in the area. Another was to house a rhinoceros in the basement purely for tourists to come and view, and the other was to acquire the ruins of the castle and make them in the residence of his wife, Gala.
Moderate work has been performed on the castle to maintain its current state, but visitors will note that it is on privately owned land. Also of note is that the interior has been closed to the public in order to thwart vandals, so only the exterior is visible to visitors.