How it works Try a lens The library Explore Get started FAQ Download on the App Store →

COUNTRIES

Morocco: map, flag, capital and key facts

Morocco is a country in Africa, with about 38.4 million people (2025) and an area of 446,550 square kilometres. Its capital is Rabat, and its only land neighbour is Algeria.

Flag of Morocco
Flag of Morocco
Map showing where the country sits among its neighbours
Morocco in solid, land neighbours outlined, capital marked.

Key facts about Morocco

CapitalRabat
ContinentAfrica
Population38,430,770 2025, World Bank. 41st of 195.
Area446,550 km² (172,414 sq mi) World Bank, surface area. 58th largest of 195.
Population density86 people per km²
Land neighbours1: Algeria
Official nameKingdom of Morocco
UN statusMember state
Capital coordinates34.03° N, 6.84° W Rabat, Natural Earth.

Land neighbours

Morocco borders 1 country on land. Each links to its own page.

From the Geography app

The app teaches each country through short hand written lenses: PLACE for physical geography, STORY for history and identity, NOW for the news, and THREAD for the ties between countries. Here is one of Morocco's 19, in full.

PLACELens 1 of 19

Morocco faces both the Atlantic and the Mediterranean

Morocco sits at the northwest corner of Africa, just 14 kilometers from Spain across the Strait of Gibraltar. That position makes it a natural bridge between Europe and Africa, between the Atlantic and the Mediterranean, and between the Arab world and sub-Saharan Africa. Few countries in the world sit at so many geographic intersections at once.

More on Strait of Gibraltar

One of the world's most important maritime chokepoints, connecting the Mediterranean to the Atlantic. Morocco and Spain face each other across it, creating one of the sharpest economic boundaries on the planet.

18 more lenses on Morocco in the app

  • STORY Morocco blends Arab, Amazigh, and African identities
  • NOW Morocco is building infrastructure at a pace that outstrips its neighbors
  • THREAD Morocco is Africa's bridge to Europe
  • THREAD The Western Sahara question defines Moroccan diplomacy
  • PLACE Where the Atlas meets two seas
  • STORY The semi-final that moved a continent
  • NOW A squad built in Europe's academies
  • THREAD Gibraltar as a bridge to 2030
  • PLACE Casablanca, the Atlantic and its two clubs
  • STORY Amazigh roots beneath a modern team
  • NOW Stadiums, academies and the uses of football
  • THREAD The Maghreb and its migrations to Europe
  • NOW A country learning to drink the sea
  • PLACE The range that keeps the Sahara at bay
  • STORY The oldest university was founded by a woman
  • NOW Cars now outsell phosphates on Morocco's docks
  • PLACE Cold water rises and the sardines follow
  • STORY The battle where three kings died at once

Titles only. The app brings each lens back on a spaced repetition schedule set by how well you knew it: New, Hazy or Clear.

Compare Morocco with another country

Opens the country comparison tool with population, area, income and more side by side, every figure dated.

Common questions

What is the capital of Morocco?
The capital of Morocco is Rabat. Rabat lies at about 34.0 degrees north and 6.8 degrees west. Morocco is in Africa. It is home to about 38.4 million people. The world capitals quiz on this site tests every capital, and the printable capitals sheets cover each continent.
What is the population of Morocco?
About 38.4 million people live in Morocco, according to the World Bank figures for 2025. That makes it the 41st most populous of the 195 countries. With an area of 446,550 square kilometres, that is about 86 people per square kilometre.
What countries border Morocco?
Morocco shares land borders with 1 country: Algeria. The map on this page outlines each of them around Morocco. The count includes only borders on land, not neighbours across a sea or a lake. Borders here follow Natural Earth at the 1:50 million scale, with Crimea shown as part of Ukraine and Western Sahara as a separate territory.
How big is Morocco?
Morocco covers 446,550 square kilometres, or about 172,414 square miles. That makes it the 58th largest of the 195 countries. The figure is total surface area, which includes inland water such as lakes and rivers. Its population of about 38.4 million gives a density of 86 people per square kilometre.

Keep exploring