Castillo de Aguilar is known from at least the 9th century. It is mostly in ruin, a part turned into a cistern for the local aqueduct. In the 9th century Aguilar de la Frontera became the headquarters of the rebel Umar ibn Hafsun, who built extensive fortifications and reinforced the castle. However, in 891, Umar ibn Hafsun lost the town to emir Abdallah ibn Muhammad of Córdoba. Due to its strategic position, it was contested and, after the dissolution of the caliphate of Córdoba, it became part of the cora of Cabra.
In 1240 it was conquered by the Christians, although numerous Muslims were allowed to remain. King Peter I of Castile assigned its seigniory to Alfonso Fernandez Coronel, but later reannexed it to the crown. The town was renamed Aguilar of the Frontier due to its position on the border with the Moorish Kingdom of Granada.
Since the mid-seventeenth century the castle was no longer needed for defense, consequently in 1860 it was converted into a Hospital. The Lisbon earthquake in 1755 caused part of the building to collapse. The fallen stones were reused for various public and private works. The remains of the castle are located on the hill to the north of the town on the extension of Calle Villa. The Tourist office is located at the castle. Free guided tours available on request.References:
Narikala is an ancient fortress overlooking Tbilisi, the capital of Georgia, and the Kura River. The fortress consists of two walled sections on a steep hill between the sulphur baths and the botanical gardens of Tbilisi. On the lower court there is the recently restored St Nicholas church. Newly built in 1996–1997, it replaces the original 13th-century church that was destroyed in a fire. The new church is of 'prescribed cross' type, having doors on three sides. The internal part of the church is decorated with the frescos showing scenes both from the Bible and history of Georgia.
The fortress was established in the 4th century and it was a Persian citadel. It was considerably expanded by the Umayyads in the 7th century and later, by king David the Builder (1089–1125). Most of extant fortifications date from the 16th and 17th centuries. In 1827, parts of the fortress were damaged by an earthquake and demolished.