Matrera Castle was built in the 9th century by Omar ibn Hafsún to defend Iptuci, the most advanced city of the Cora de Ronda. However, Mount Pajarete was a place of human settlement since Antiquity.
In the 13th century, it was conquered by San Fernando, who rebuilt it. Nevertheless, at the beginning of the XIV century, it returned to Muslim hands, being definitively reconquered by Alfonso XI in 1341. However, being located in the middle of the Moorish Border or Band was besieged by the Muslims of Granada in 1408 and in 1445.
By 2010, only a few walls of the castle remained standing, and the ruins were further damaged by rain in 2013. A restoration project was launched in 2010 and completed in 2015. Parts of the tower were rebuilt with lime plaster similar to samples found on the site, with large, plain blocks defining the original shape of the castle.
References:The Walls of Constantinople are a series of defensive stone walls that have surrounded and protected the city of Constantinople (today Istanbul) since its founding as the new capital of the Roman Empire by Constantine the Great. With numerous additions and modifications during their history, they were the last great fortification system of antiquity, and one of the most complex and elaborate systems ever built. They were also the largest and strongest fortification in both the ancient and medieval world.
Initially built by Constantine the Great, the walls surrounded the new city on all sides, protecting it against attack from both sea and land. As the city grew, the famous double line of the Theodosian Walls was built in the 5th century. Although the other sections of the walls were less elaborate, they were, when well-manned, almost impregnable for any medieval besieger.