The Zagra Castle is located in a town that has historically belonged to the territory of Loja. Throughout the XV century Christians had definitive progress, a number of important places (Antequera, Archidona) and the territory in question was located in an increasingly edgy win position. The defense of this territory was organized around the castles of Cesna and Zagra. It is a border castle and consists of two distinct enclosures. In the first, the population was settled and it occupies the entire slope of the hill that overlooks the modern town. The second was the fortress or military installation, and occupies the upper part thereof. Both enclosures are at different levels, and were separated by a wall,