199 countries 39,402 visa rules 72,668 airports 7,028 languages 235 holiday calendars 1,260 news stories Visa data verified 13 Oct 2026
Free Passport Photo Maker
Travel photo of Morocco

Africa · neighbouring countries

Flag of MoroccoNeighboring Countries of Morocco

Morocco shares land borders with 4 countries: Algeria (1,941 km), Mauritania (1,564 km), Western Sahara (444 km) and Spain (8 km).

Check another country

4
Neighbouring countries (#62 of 236)
3,524 km
Total land borders
2,945 km
Coastline
716,550
Area in km²
  • Morocco
  • Neighbouring countries
  • Neighbours of neighbours

Countries bordering Morocco

NeighbourBorder lengthCapitalVisa for Morocco citizens
Flag of AlgeriaAlgeria
1,941 km
Algiers Visa required
Flag of MauritaniaMauritania
1,564 km
Nouakchott eVisa
Flag of Western SaharaWestern Sahara
444 km
— —
Flag of SpainSpain
Ceuta
8 km
Madrid Visa required

Algeria accounts for 55% of Morocco's 3,524 km of land borders. Lengths: CIA World Factbook (public domain).

Geography of Morocco

Location

Northern Africa, bordering the North Atlantic Ocean and the Mediterranean Sea, between Algeria and Mauritania

Area

716,550 km² — slightly larger than twice the size of California

Terrain

Mountainous northern coast (Rif Mountains) and interior (Atlas Mountains) bordered by large plateaus with intermontane valleys, and fertile coastal plains; the south is mostly low, flat desert with large areas of rocky or sandy surfaces 

Climate

Mediterranean in the north, becoming more extreme in the interior; in the south, hot, dry desert; rain is rare; cold offshore air currents produce fog and heavy dew

Highest and lowest points

Highest: Jebel Toubkal 4,165 m. Lowest: Sebkha Tah -59 m. Mean elevation: 909 m.

Natural resources

Phosphates, iron ore, manganese, lead, zinc, fish, salt

Natural hazards

In the north, the mountains are geologically unstable and subject to earthquakes; periodic droughts; windstorms; flash floods; landslides; in the south, a hot, dry, dust/sand-laden sirocco wind can occur during winter and spring; widespread harmattan haze exists 60% of time, often severely restricting visibility

Good to know

Strategic location along Strait of Gibraltar; the only African nation to have both Atlantic and Mediterranean coastlines; the waters off the Atlantic coast are particularly rich fishing areas

Frequently asked questions about the borders of Morocco

How many countries border Morocco?

Morocco shares land borders with 4 countries: Algeria (1,941 km), Mauritania (1,564 km), Western Sahara (444 km) and Spain (8 km).

Which is the longest border of Morocco?

The longest land border of Morocco is with Algeria (1,941 km); the shortest is with Spain (8 km).

Is Morocco landlocked?

No. Morocco has 2,945 km of coastline.

How long are the land borders of Morocco?

The land borders of Morocco total 3,524 km. By number of neighbours Morocco ranks #62 among 236 countries and territories.

Do Morocco citizens need a visa for neighbouring countries?

Morocco citizens need a visa or travel authorisation for all neighbouring countries — see the table on this page.

What is the highest point of Morocco?

Jebel Toubkal 4,165 m. The lowest point is Sebkha Tah -59 m.

Borders and geography: CIA World Factbook (public domain). Visa rules: TravelRequirements.info — Entry Requirements Dataset, AXG Sp. z o.o. (CC BY 4.0).