Gérgal Castle was built somewhere during the Late Middle Ages during Muslim rule. By 1492 it had fallen into the hands of the Catholic Monarchs; Queen Isabella I of Castile and King Ferdinand II of Aragon. They donated the castle to Alonso de Cárdenas, Grand Master of the Order of Santiago, for outstanding services during the Granada War.
During the 16th century it played an important defensive role against the inland raids of Barbary pirates, who were supported by the remaining Moorish population. In 1568 the Moors rebelled and the Christians in Gérgal were massacred and the Moors held the castle. They were driven out some time later and the castle was destroyed by Christian forces to avoid a repeated use by the Moors. Between 1571 and 1620 all the Moors were expelled from the Iberian mainland. This left the area around Gérgal Castle depopulated and open to banditry.
During the first half of the 17th century Gérgal Castle was rebuilt on the site of the old Muslim fortification to restore order and favor repopulation in the area. In the middle of the 18th century it belonged to Isabel Pacheco Portocarrero, Countesss of Puebla del Maestre and Marchioness of Torre de las Sirgadas. She used it for storing storing grains.
The castle we see today dates back to the rebuilding in the 17th century. Its core is a square crenellated tower with lower round towers at its corners. At its north western facade and attached to one of the corner towers is a semicircular bastion. It is build up out of horizontally laid slabs of slate. The castle is now also equipped with a crenellated outer wall, but this was built by the present owner.
References:Rosenborg Palace was built in the period 1606-34 as Christian IV’s summerhouse just outside the ramparts of Copenhagen. Christian IV was very fond of the palace and often stayed at the castle when he resided in Copenhagen, and it was here that he died in 1648. After his death, the palace passed to his son King Frederik III, who together with his queen, Sophie Amalie, carried out several types of modernisation.
The last king who used the place as a residence was Frederik IV, and around 1720, Rosenborg was abandoned in favor of Frederiksborg Palace.Through the 1700s, considerable art treasures were collected at Rosenborg Castle, among other things items from the estates of deceased royalty and from Christiansborg after the fire there in 1794.
Soon the idea of a museum arose, and that was realised in 1833, which is The Royal Danish Collection’s official year of establishment.