Theobald I ordered the construction of the Tiebas castle around 1250 and since then it has suffered throughout history.
It survived numerous attacks quite well until an attack by Castile in 1378 ended with it on fire. With it, burned a good part of the Navarre Archive, and this has deprived us of a lot of information about our history.
Luckily, in 1512, it managed not be demolished under Cardinal Cisneros. Then it witnessed a bloody battle in 1810 between four battalions under Espoz y Mina against more than 3,000 French soldiers.
In the end, after being abandoned, many of the stones were taken from the castle, and work is being done now to consolidate the structure.
References:The first written record of church in Danmark locality date back to the year 1291. Close to the church are several stones with a Christian text and cross inscribed. The oldest parts of the present red-brick church are from the 1300s. In the late 1400s the church was enlarged to the appearance it has today. The church has been modified both internally and externally several times, among other things after the fires in 1699 and 1889. There are lot of well-preserved mural paintings in the walls.