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:The Pilgrimage Church of Wies (Wieskirche) is an oval rococo church, designed in the late 1740s by Dominikus Zimmermann. It is located in the foothills of the Alps in the municipality of Steingaden.
The sanctuary of Wies is a pilgrimage church extraordinarily well-preserved in the beautiful setting of an Alpine valley, and is a perfect masterpiece of Rococo art and creative genius, as well as an exceptional testimony to a civilization that has disappeared.
The hamlet of Wies, in 1738, is said to have been the setting of a miracle in which tears were seen on a simple wooden figure of Christ mounted on a column that was no longer venerated by the Premonstratensian monks of the Abbey. A wooden chapel constructed in the fields housed the miraculous statue for some time. However, pilgrims from Germany, Austria, Bohemia, and even Italy became so numerous that the Abbot of the Premonstratensians of Steingaden decided to construct a splendid sanctuary.