Portugal–Spain relations of Enlightenment. Until then the word Spain (Hispânia) was only a geographic location referring exclusively to the Iberian peninsula. It was only in the constitution of 1812 that the name "Españas" (Spains) was adopted for the country along with the use of the title of "king of the Spains". The constitution of 1876 adopts for the first time the name "Spain" for the Spanish state and from then on the kings would use the title of "king of Spain". Portugal, Castille and Aragon were allies in the "Reconquista" in which they reconquered land from the Muslim Moors in the south
Portugal I of Portugal signed with the king Fernando IV of Castile (which was represented, when being a minor, by his mother the queen Maria de Molina) the Treaty of Alcañices (1297), which stipulated that Portugal abolished agreed treaties against the kingdom of Castile for supporting the infant Juan de Castilla. This treaty established inter alia the border demarcation between the kingdom of Portugal and the kingdom of Leon, where the disputed town of Olivenza was included. The reigns of Dinis I (Denis I), Afonso IV (Alphons IV), and Pedro I (Peter I) for the most part saw peace with the