Jimena de la Frontera castle was originally built by the Grenadian Moors of the Umayyad Caliphate ruling over the area of Hispania Baetica (modern Andalusia) in the 8th Century. It served as one of many castles guarding both the approach to the fortifications around Gibraltar and the Bay of Algeciras where the strategic and important Moorish stronghold and fortress of Algeciras was located.
The fortress was likely built over the ruins of the ancient city of Oba which dated to pre Roman Celtiberian period. Given its strategic location on the frontier of the Gibraltar region, this fortress proved an important Moorish stronghold throughout the Muslim domination of the Iberian Peninsula.
The castle was taken by the Jerezanos in 1430 and retaken by the Moorish Kingdom of Granada in 1451. In 1465, it was integrated into the Kingdom of Castille as the property of the crown.
The outer defenses consist of a long irregular wall that is lengthened in places to adapt to the uneven mountainous terrain. Watchtowers line this wall at regular intervals. The most well known tower is the Torre del Reloj or Albarrán (Clock Tower) and together, the towers have a very effective line of sight and defense forming an easily defensible arch of a fire zone. Various trenches also exist, all dug in different eras.
Inside the walls stands the Alcázar which was built or renovated after the Christian takeover of the castle. the Torre del Homenaje, with its large circular dome juts out of the Alcázar at a height of 13 meters making it the tallest tower of the castle. The inside of the Torre del Homenaje hides an earlier polygonal pattern tower that was presumably built over after the Christian takeover.
References:Inverness Castle sits on a cliff overlooking the River Ness. The red sandstone structure evident today was built in 1836 by architect William Burn. It is built on the site of an 11th-century (c. 1057) defensive structure. Today, it houses Inverness Sheriff Court.
The castle is said to have been built by Máel Coluim III of Scotland, after he had razed to the ground the castle in which Macbeth of Scotland according to much later tradition, murdered Máel Coluim"s father Donnchad I of Scotland, and which stood on a hill around 1 km to the north-east.
The first Inverness Castle was partially destroyed by King Robert I of Scotland and a replacement castle was sacked in the 15th century by the Clan Donald during the Siege of Inverness (1429). The castle was occupied during the Raid on Ross in 1491.
In 1548 another castle with tower was completed by George Gordon, 4th Earl of Huntly (1514–1562). He was constable of the castle until 1562.