Which countries border Morocco?
Morocco shares a land border with three countries: Algeria, Mauritania and Spain. That is more than 45 of the 157 countries that have a land border.
Can you get from Morocco to Croatia by land, one border at a time? Play today's Border Chain.
Morocco and its neighbours on a map
Morocco is shown in green and its three neighbours in blue. Click a neighbour to see the countries that border it.
- Morocco
- Land neighbours
Every neighbour of Morocco
| Country | Its own land neighbours |
|---|---|
| Algeria | 6 |
| Mauritania | 4 |
| Spain | 4 |
Countries near Morocco
Beyond its three land neighbours, these are the countries closest to Morocco: across the sea, and two borders away by land.
Nearby across the sea
This country shares no land border with Morocco, but its 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 Morocco but not Morocco 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 Morocco?
On a phone this uses GPS. The calculator shows the straight-line distance to the nearest country border from where you are.
Tools for Morocco
Straight-line distance to the nearest coast.
Open in workspaceTrace a field or plot and read its area in acres or hectares.
Open in workspaceExplore Morocco
Questions
Which countries border Morocco?
Morocco shares a land border with three countries: Algeria, Mauritania and Spain.
How many countries border Morocco?
Three. That is more than 45 of the 157 countries that have a land border.
Which countries are two borders away from Morocco?
Andorra, France, Libya, Mali, Niger, Portugal, Senegal and Tunisia. Each one borders a neighbour of Morocco without touching Morocco itself.
Which countries are near Morocco across the sea?
Portugal (about 200 km (130 mi)). None of them shares a land border with Morocco; 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 Morocco across the water are listed apart, under "Nearby across the sea".
Countries with the most 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.