Afonso I of Portugal
In order to building a defensive line and strengthen his presence in the region, D. Afonso I of Portugal donated the area to D. Gualdim Pais, Master of the Templars; a vast region, that extended to the territory of Egitânea (corresponding to Idanha-a-Velha) along the Rio Erges.