Morocco land borders

Updated on by statistics.wiki

Map of Morocco and its neighboring countries

  • Morocco
  • Neighboring countries

Sources: Central Intelligence Agency (CIA) (2025, updated October 2026).

statistics.wiki/land-borders/morocco | CC BY

Morocco borders three countries: Algeria, Mauritania and Spain. Morocco's land borders total 2,189 mi (3,524 km), the 58th longest of the 157 countries with land borders.

Morocco's land borders are the 24th longest of the 48 countries of Africa with land borders.

Morocco land borders: total length, rankings and longest border

Total length 2,189 mi (3,524 km)
Neighboring countries 3
World rank by total length 58/157
Rank in Africa 24/48
Rank, lower-middle income 20/42
Longest border Algeria 1,206 mi (1,941 km)

Sources: Central Intelligence Agency (CIA) (2025, updated October 2026).

statistics.wiki/land-borders/morocco | CC BY

Morocco neighboring countries and border lengths

Neighboring country Border length, mi Share of the total
Algeria 1,206 55.1% vs Algeria
Mauritania 972 44.4%
Spain 11.5 0.53% vs Spain

Sources: Central Intelligence Agency (CIA) (2025, updated October 2026).

statistics.wiki/land-borders/morocco | CC BY

The border with Algeria is the longest, 1,206 mi (1,941 km), 55.1% of the total; the shortest, with Spain, is 11.5 mi (18.5 km).

Morocco and its neighbors: total length of land borders

  1. Algeria 4,184 mi
  2. Mauritania 3,108 mi
  3. Morocco 2,189 mi
  4. Spain 1,213 mi

Sources: Central Intelligence Agency (CIA) (2025, updated October 2026).

statistics.wiki/land-borders/morocco | CC BY

Of Morocco and its three neighbors, Algeria has the longest land borders in total, 4,184 mi (6,734 km), and Spain the shortest, 1,213 mi (1,953 km). Morocco is third of the four, with 2,189 mi (3,524 km).

Compare the land borders of Morocco with other countries

Sources:

  1. Central Intelligence Agency (CIA) (2025, updated October 2026)

Share the link

Send feedback or report error