Later additions, in the Taifa period, to the original fortification built in the Xth century. In the same place there probably existed an ancient control point. The castle was an initiative of the state for the control and administration of the Miravet area during the Andalusian period.