The first documents of Baena Castle date at the beginning of the 9th century (890), during the reign of Emir Ahdullah, whose Governor in Regio since 889 had been Omar Ben Hafsum who rebelled and took Baena in 891.
In 1228, the governor of Fernando III in Baeza attacked the castle, belonging then to Seville. Subsequently the castle was attacked by Mohamed, the king of Granada, 1297. In July 1320 a peace treaty was signed in this castle between the Alonso XI and Ismail, King of Granada, which guaranteed this peace for eight years. In 1332, this same Alfonso XI garrisoned the castle in the face of danger from Granada, and in 1341 he left Baena to attack the Nasrid kingdom, not before providing the fortress with men and materials. In 1362 Abu Said, King of Granada, the Bermejo, took refuge in Baena and was accompanied to Seville by people from Cordoba.
In 1401 the castle was ceded by Henry III to the Marshal, Don Diego Fernández de Córdoba, with the opposition of the inhabitants of the city, taking possession of it in 1438.
Since the 16th century it has been used as the Palacio de los Duques. Diego Fernández de Córdoba, III Conde de Cabra, established his residence in the castle at the beginning of the 16th century and gave it a more palatial character. In 1520 the Baena and Condado de Cabra estate became related by marriage to the Duchy of Sessa. En 1566, by a Royal Decree of Philip II, Baena became the Duchy of Baena whereupon the lords of Baena came to be the Dukes of Sessa and Baena. It is from that time when there began to be a succession of structural changes in the fortified enclosure aimed at making the place suitable as a residence, and the military character of the complex faded into the background.
Baena Castle is square and still has part of its original walls and three of the four towers located in those of: El Secreto, Los Cascabeles and the last one of the Cinco Esquinas or Las Arqueras.
References:The Castle of Gruyères is one of the most famous in Switzerland. It was built between 1270 and 1282, following the typical square plan of the fortifications in Savoy. It was the property of the Counts of Gruyères until the bankruptcy of the Count Michel in 1554. His creditors the cantons of Fribourg and Bern shared his earldom. From 1555 to 1798 the castle became residence to the bailiffs and then to the prefects sent by Fribourg.
In 1849 the castle was sold to the Bovy and Balland families, who used the castle as their summer residency and restored it. The castle was then bought back by the canton of Fribourg in 1938, made into a museum and opened to the public. Since 1993, a foundation ensures the conservation as well as the highlighting of the building and the art collection.
The castle is the home of three capes of the Order of the Golden Fleece. They were part of the war booty captured by the Swiss Confederates (which included troops from Gruyères) at the Battle of Morat against Charles the Bold, Duke of Burgundy in 1476. As Charles the Bold was celebrating the anniversary of his father's death, one of the capes is a black velvet sacerdotal vestment with Philip the Good's emblem sewn into it.
A collection of landscapes by 19th century artists Jean-Baptiste-Camille Corot, Barthélemy Menn and others are on display in the castle.