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:The Château du Lude is one of the many great châteaux of the Loire Valley in France. Le Lude is the most northerly château of the Loire Valley and one of the last important historic castles in France, still inhabited by the same family for the last 260 years. The château is testimony to four centuries of French architecture, as a stronghold transformed into an elegant house during the Renaissance and the 18th century. The monument is located in the valley of Le Loir. Its gardens have evolved throughout the centuries.