Portugal–Spain border disputed between the two countries for two hundred years. A microstate existed previously on the border called Couto Misto. Districts on the Portuguese side of the border from North to South: Provinces on the Spanish side of the border from North to South: Portugal and Spain signed the Schengen Agreement in June 1991 which came into effect on 26 March 1995, making Portugal and Spain part of the Schengen area and thus the border then became an Open border. Portugal has since reintroduced border checks several times along the border with Spain, during the UEFA Euro 2004 championships, during the
Border of Granada other municipalities in the Huelva province, which include ""de la Frontera"" in their names. However, these do not refer to the Border of Granada border, but to the border with Portugal. This is the case with Rosal de la Frontera and Palos de la Frontera. The first frontier was defined by the Pact of Jaén in 1246 between Muhammad I "ibn al-Ahmar", first king of Granada, and King Fernando III 'El Santo', following extensive conquests by the latter in the valley of the Guadalquivir. The border then went through modifications during the reigns of Sancho IV, Fernando IV and Alfonso