 The origin of the castle is not completely clear.The archaeological remains found in its vicinity indicate that this area should be the defense of a small medieval town, known by locals as the Villeta, place where the medieval image of the Virgin and Child proceed, preserved nowadays in the parochial church in the town.According to information managed by Christopher Guitart, the building already existed in 1284, used by the royal troops as a starting point for the conquest of Albarracin.