Globe Game › Guides › Countries that border › Spain
Which countries border Spain?
Spain shares a land border with 4 countries: Andorra, France, Morocco and Portugal. That ranks Spain number 60 in the world for the most neighbors (tied).
Spain's neighbors
| Flag | Country | Capital | Distance from Madrid |
|---|---|---|---|
| Andorra | Andorra la Vella | 500 km | |
| France | Paris | 1,050 km | |
| Morocco | Rabat | 750 km | |
| Portugal | Lisbon | 500 km |
Distance is a straight line between the two capitals, rounded to 50 km. Neighbors are places whose land borders touch Spain; sea borders are not included.
Quick facts
- Capital: Madrid. Continent: Europe.
- Largest neighbor: France, which is also the most populous.
- Closest neighboring capital: Andorra la Vella (Andorra), about 500 km from Madrid. Farthest: Paris (France), about 1,050 km.
- Neighbors' combined size: about 2.2 times Spain's own area, and 2.4 times its population.
- Closest country that is not a neighbor: Algeria, about 21 km away at the nearest point, so close it can feel like a neighbor in the game.
How Spain's neighbors connect
Of Spain's 4 neighbors, 1 pair also borders each other: Andorra–France. Morocco and Portugal touch no other neighbor of Spain.
Two borders away (8): Algeria, Belgium, Germany, Italy, Luxembourg, Monaco, Switzerland and Western Sahara. These countries are not neighbors of Spain, but each borders at least one of them.
Spain in Globe Game
In Globe Game, every neighbor of the mystery country shows 0 km (how distance works). If you guess Spain and it shows 0 km without being the answer, the answer is one of the 4 countries above. More on borders: countries with the most neighbors.
Computed from Globe Game's own country data (Natural Earth borders, Wikidata and GeoNames facts), the same data the game uses, so these numbers match what you see on the globe.
FAQ
How many countries border Spain?
4: Andorra, France, Morocco and Portugal.
What is the capital of Spain?
Madrid.
What is the biggest country that borders Spain?
France, by land area.
Updated 2026-12-05.