The Castle is a Muslim defensive construction located next to 7 km milestone on the SE-140 motorway from Peñaflor to La Puebla de los Infantes. However, chronologically speaking, it belongs to the 12th century Almohad period.
The first known references are from Arab chronicles, which mentions the raids or “razzias” of Christian troops in the twelfth century. King Alfonso VIII seized Setefilla Castle in 1182 and Almenara Castle in 1189, although the latter would shortly after fall back into Muslim hands. The conquest of Peñaflor in 1238 placed the Castle definitively in Castilian hands. Current, it is in a perilous state of preservation.