Title: Borders of Spain
Content:   Spain has 1953 km of borders, with 5 different countries.
Title: Time in Spain
Content:  Spain has borders with four countries: Portugal, France, Andorra, and Morocco; as well as with the British Overseas Territory of Gibraltar. Clocks must normally be set one hour earlier than in Spain after crossing the borders with Portugal.
Title: Geography of Spain
Content:  land boundaries with France and Andorra along the Pyrenees in the northeast, with Portugal on the west, with the small British colonial Territory of Gibraltar near the southernmost tip, and with Morocco in its autonomous cities of Ceuta and Melilla, and certain other small but uninhabited enclaves, mostly capes and small isles. The affiliation of Gibraltar has continued to be a contentious issue between Spain and Britain, and the sovereignty of Spain's enclaves, or plazas de soberanía, on the Mediterranean coast of Morocco is disputed by Madrid. Spain also has a small exclave inside France called Llívia, which is a mountain village in the historical comarca of La Cerdanya, forming part of the historical territories of Catalonia.
Title: Spain
Content:   At 505992 km2, Spain is the world's fifty-second largest country and Europe's fourth largest country. It is some 47000 km2 smaller than France. Mount Teide (Tenerife) is the highest mountain peak in Spain and is the third largest volcano in the world from its base. Spain is a transcontinental country, having territory in both Europe and Africa. Spain lies between latitudes 27° and 44° N, and longitudes 19° W and 5° E. On the west, Spain is bordered by Portugal; on the south, it is bordered by Gibraltar (a British overseas territory) and Morocco, through its exclaves in North Africa (Ceuta and Melilla, and the peninsula of Vélez de la Gomera). On the northeast, along the Pyrenees mountain range, it is bordered by France and Andorra. Along the Pyrenees in Girona, a small exclave town called Llívia is surrounded by France. Extending to 1214 km, the Portugal–Spain border is the longest uninterrupted border within the European Union.
Title: Borders of Spain
Content:  The Spain-France border is 656.3 km long. It is divided in two parts, since it is interrupted by Andorra. The first part extends through the provinces of Gipuzkoa, Navarre, Huesca, Lleida and Girona in Spain, and the departments of Pyrénées-Atlantiques, Hautes-Pyrénées, Haute-Garonne, Ariège, Pyrénées-Orientales in France. The border goes from the mouth of Bidasoa River to a cape between Cerbère and Portbou, and crosses the Pyrenees.
Title: France–Spain border
Content: Spain ; Gipuzkoa (Basque Country) ; Navarre ; Province of Huesca (Aragon) ; Province of Lleida (Catalonia) ; Province of Girona (Catalonia) ; France ; Pyrénées-Atlantiques (Nouvelle-Aquitaine) ; Hautes-Pyrénées (Occitanie) ; Haute-Garonne (Occitanie) ; Ariège (Occitanie) ; Pyrénées-Orientales (Occitanie) The Franco-Spanish border runs for 656.3 km between southwestern France and northeastern Spain. It begins in the west on the Bay of Biscay at the French city of Hendaye and the Spanish city of Irun (43.37556°N, -1.79194°W). The border continues eastward along the Pyrenees to Andorra (42.60361°N, 1.44167°W). At this point, the small country interrupts the border between Spain and France for 63.7 km on the Spanish side and 56 km on the French side. Then it continues eastward (42.5025°N, 1.72611°W) to the Mediterranean Sea at Cerbère in France and Portbou in Spain (42.43583°N, 3.17389°W). From west to east, crossing the border: 
Title: Borders of Spain
Content:  The Spain-Portugal border, commonly known as La Raya, is 1,292 kilometers long. It extends through the provinces of Pontevedra, Ourense, Zamora, Salamanca, Cáceres, Badajoz and Huelva in Spain, and the districts of Viana do Castelo, Braga, Vila Real, Bragança, Guarda, Castelo Branco, Portalegre, Évora, Beja, Faro in Portugal. The border starts in the mouth of Minho River, and ends in the mouth of Guadiana River.
Title: Foreign relations of Spain
Content:  Spain has been successful in managing its relations with its three immediate European neighbours, France, Andorra, and Portugal. The accession of Spain and Portugal to the EU in 1986 has helped ease some of their periodic trade frictions by putting these into an EU context. Franco-Spanish bilateral cooperation has been enhanced by joint action against recurring violence by separatist Basque group ETA since the 1960s. Ties with the United Kingdom are generally good, although the question of Gibraltar remains a sensitive issue, especially since the UK vote on Brexit.
Title: Borders of Spain
Content:  The Spain–Gibraltar border is 1.2 km long and connects the British Overseas Territory of Gibraltar and the Spanish municipality of La Línea de la Concepción.
Title: Geography of Spain
Content:   Spain is a country located in southwestern Europe occupying most (about 82 percent) of the Iberian Peninsula. It also includes a small exclave inside France called Llívia, as well as the Balearic Islands in the Mediterranean, the Canary Islands in the Atlantic Ocean 108 km off northwest Africa, and five places of sovereignty (plazas de soberanía) on and off the coast of North Africa: Ceuta, Melilla, Islas Chafarinas, Peñón de Alhucemas, and Peñón de Vélez de la Gomera. The Spanish mainland is bordered to the south and east almost entirely by the Mediterranean Sea (except for the small British territory of Gibraltar); to the north by France, Andorra, and the Bay of Biscay; and to the west by the Atlantic Ocean and Portugal. With a land area of 504,782 km2 in the Iberian peninsula. Spain 

Question: what countries share borders with spain?
Answer: Perejil Island.