Within the territory of the present-day municipality once stood the town of Ercavica (or Arcavica), an episcopal see whose bishop Petrus signed the acts of the Council of Toledo of 590. The last known bishop of Arcavica was Gabinius, who was of the late 7th century. His signature appears in the acts of the 16th Council of Toledo in 693. It is thought that Arcavica was destroyed in the Saracen invasion.España Sagrada, tomo VII, Madrid 1750, pp. 53–79
