Which countries border Spain?
Spain borders 3 countries: Andorra, France and Portugal.
SpainNeighbours
Spain's neighbours
In Europe, Russia has the most land neighbours: 14.
How Spain's borders were drawn
Spain's border with Portugal is one of the oldest in Europe, fixed largely by the Treaty of Alcañices in 1297 between Castile and Portugal, and following rivers such as the Minho, Douro, Tagus and Guadiana for long stretches. The northern border with France runs along the Pyrenees. The 1659 Treaty of the Pyrenees, which ended a long war between Spain and France, gave France the county of Roussillon and part of Cerdanya, and set the line mostly along the mountain crest. The precise border was surveyed in the Treaties of Bayonne in the 1850s and 1860s.
Andorra, high in the eastern Pyrenees, was never absorbed by either neighbour. Since 1278 it has had two co-princes: today the Bishop of Urgell in Spain and the President of France. Its border with Spain dates from that medieval arrangement.
Border facts
- Llívia is a Spanish exclave inside France. When the 1659 treaty handed 33 villages of Cerdanya to France, Llívia was classed as a town, not a village, so it stayed Spanish.
- Pheasant Island in the Bidasoa River is ruled by Spain and France in turn, changing hands every six months – often called the world's smallest condominium.
- Spain has two cities on the North African coast, Ceuta and Melilla, which give it land borders with Morocco. Morocco claims both cities, while Spain considers them integral parts of its territory.
- Gibraltar, at Spain's southern tip, has been British since the 1713 Treaty of Utrecht. Spain claims it, while Britain and most Gibraltarians wish it to stay British.
- Spain and Portugal disagree over the town of Olivenza, which Spain has governed since 1801.