The Cartama Castle is located in the Monte de la Virgen (Mount of the Virgin), where the Hermitage of Nuestra Señora de los Remedios is also located and where it is possible to be enjoyed some impressive panoramic views. Cártama Castle was built by the Moors in the early Middle Ages. During the Mozarabic revolt of Omar ibn Hafsun, between 881 and 914 AD, Cártama stayed loyal to the Caliphate of Córdoba and the castle was strengthened.
Because of the advancing Christian troops Cártama Castle was again strengthened during the 14th century. By that time the castle would probably have had a double curtain wall and several towers. In 1485 however, the castle was taken by Christians troops. Because the castle was important for their siege against the city of Málaga the Catholic Monarchs invested large sums of money in maintaining the castle between 1485 and 1487. From 1491 on the castle lost its strategic importance and the castle was used as a quarry by the locals.
What you can see today are the scarce remains of a rectangular alcazaba with its surrounding walls and a cistern.
References:Duino Castle was built by the Wallsee family in 1389 on the cliffs overlooking the Gulf of Trieste. It replaced an older castle from the 11th century. Over time, the Wallsee family disappeared and the castle, after having been used as a prison, became the residence of the Luogar and Hofer.
At the end of the 19th century it became the property of Prince Alexander von Thurn und Taxis from the Czech branch of the House of Thurn and Taxis. It remains with the family to this day with his great-grandson Prince Carlo Alessandro della Torre e Tasso, Duke of Castel Duino the current owner. The castle has been opened to the public as a museum and park.