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.

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

CountryIts own land neighbours
Algeria6
Mauritania4
Spain4

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.

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.

Are borders across the sea counted?

No. Only land borders count. Countries that face Morocco across water are not listed here, and neither are borders of overseas territories far from the mainland. This is the same list the Border Chain game plays with.

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 from Natural Earth.