Castillo de la Peña was originally a prehistorical settlement, an Iberian fortified village and, very probably, the location of a Roman temple. The current fortification is located here because Omar ben Harfsun conquered the Peña, where originally a representative of the Cordoba state was settled (al-Tayubi) in the year 883 AD.
Omar, the leader of the Mozarabic riot in the mountain ranges of Malaga, fortified the Sajrat Farda Fardaris. He enclosed the natural perimeter with walls and towers and built on the top a square fortress.
The Peña de Ardales Castle is a clear landmark in the area and remains in time since the Middle Ages. From the castle and from the Turón Castle, which has been reinforced, the Castilian attacks were repelled in the 12th, 13th and 14th centuries. La Peña was definately conquered by the troops lead by King Juan II and established themselves in Teba Castle in 1453.
Now, the Peña de Ardales Castle stores architectural remains from the walls, from the door of Justice and from the fortress. The fortress was bakly damaged because it was destroyed during the War of Independence.
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.