Which countries border Spain?

Spain shares a land border with four countries: Andorra, France, Morocco and Portugal. That is more than 72 of the 157 countries that have a land border.

Can you get from Spain to Liberia by land, one border at a time? Play today's Border Chain.

Spain and its neighbours on a map

Spain is shown in green and its four neighbours in blue. Click a neighbour to see the countries that border it.

  • Spain
  • Land neighbours

Every neighbour of Spain

CountryIts own land neighbours
Andorra2
France8
Morocco3
Portugal1

Countries near Spain

Beyond its four land neighbours, these are the countries closest to Spain: across the sea, and two borders away by land.

Nearby across the sea

These two countries share no land border with Spain, but their nearest shore is within 400 km of it across the water.

Straight-line distance between the nearest shores across the water, from simplified country outlines, so it is rounded.

Two borders away

These eight countries border a neighbour of Spain but not Spain itself, so you cross exactly two borders to reach them by land.

Think you know your neighbours?

Border Chain gives you two countries and you connect them by naming neighbours, one border at a time. A new puzzle every day.

How far are you from Spain?

On a phone this uses GPS. The calculator opens with Spain already selected and measures the straight-line distance to its nearest border.

Tools for Spain

Which region of Spain is a place in?

Country, region and district for any point.

Open in workspace
Distance to the coast anywhere in Spain

Straight-line distance to the nearest coast.

Open in workspace
Draw on a map of Spain

Markers, lines, shapes and labels. Free, no sign-up.

Open in workspace
Measure an area in Spain

Trace a field or plot and read its area in acres or hectares.

Open in workspace

Explore Spain

Questions

Which countries border Spain?

Spain shares a land border with four countries: Andorra, France, Morocco and Portugal.

How many countries border Spain?

Four. That is more than 72 of the 157 countries that have a land border.

Which countries are two borders away from Spain?

Algeria, Belgium, Germany, Italy, Luxembourg, Mauritania, Monaco and Switzerland. Each one borders a neighbour of Spain without touching Spain itself.

Which countries are near Spain across the sea?

Algeria (about 160 km (100 mi)) and Italy (about 340 km (210 mi)). None of them shares a land border with Spain; each figure is the straight line between the nearest shores.

Are borders across the sea counted?

No. Only land borders count as borders, and borders of overseas territories far from the mainland do not count either. This is the same list the Border Chain game plays with. Countries that face Spain across the water are listed apart, under "Nearby across the sea".

Countries with the most neighbours

See every country and its neighbours

Land borders as used by the Border Chain game, checked October 8, 2026. Country outlines and the distances across the sea from Natural Earth.