Located atop the hill which gives it its name, it is a strategic fortress built by the Arabs in the ninth century, taking as historic reference the year 850, although its origin could be earlier. Its importance lies in the key issue of controlling passage on the Via de la Plata (the silver route), in addition to military movements which, during the Muslim period, emerged in the city of Merida, where uprisings and rebellions against the capital, Córdoba were frequent.

In later years the castle was to pass between Christian and Muslim hands several times, following various changes of fortune.

From 1243 the castle passed into ownership of the Order of Santiago by order of Fernando III (El Santo), establishing a command underneath.

In 1550, due to the poor condition in which the castle stood, and the absence of war at that time, permanent abandonment and replacement was opted for by the Commission House built in that year.

The interior of the castle is accessed through two gates; a first door and a second called the Puerta del Sol; but the most significant element that remains of the castle after all these years, is the Torre del Homenaje (Tower of Homage), made ​​of brick and masonry.

The views are breathtaking.