Skip to content
YearMaps
Country · Africa · MA

Map of Morocco

Morocco is a country in Africa with its capital at Rabat, home to about 38.43 million people across 446,550 km². The interactive map below plots 26 cities and towns, 4 rivers, 4 mountain summits and 12 ports recorded for Morocco in YearMaps.

Population
38.43 million
#41 of 225 · World Bank, 2025
Area
446,550 km²
#59 by area
Capital
Rabat
Largest city: Casablanca
Continent
Africa
86 people per km²

Interactive Map of Morocco

5.2

Centred on Rabat at 34.0253° N, 6.8364° W. Use the layer panel to switch on rivers, dams, ports, peaks and historical borders.

About Morocco

Morocco, officially the Kingdom of Morocco, is a country in the Maghreb region of North Africa. It has coastlines on the Mediterranean Sea to the north and the Atlantic Ocean to the west, and has land borders with Algeria to the east; the Spanish exclaves of Ceuta, Melilla and Peñón de Vélez de la Gomera along the north, which it claims together with several small Spanish-controlled islands; and the disputed territory of Western Sahara to the south, partly occupied by Morocco since 1975. Morocco also claims to share a border with Mauritania through the disputed territory of Western Sahara. It has a population of approximately 37 million. Its capital is Rabat, while its largest city is Casablanca.

The region constituting Morocco has been inhabited since the Paleolithic era, more than 300,000 years ago. The Moroccan state traces its origins to the establishment of the Idrisid dynasty by Idris I in 788, although its historical territories did not coincide with those of present-day Morocco; the country is regarded as one of the world's oldest continuously existing states. Morocco was subsequently ruled by a series of other independent dynasties, reaching its zenith as a regional power in the 11th and 12th centuries, under the Almoravid and Almohad dynasties, both Berber kingdoms, when it controlled the southern and eastern Iberian Peninsula and the Maghreb. In the 15th and 16th centuries, Morocco faced external threats to its sovereignty, with Portugal seizing some territory and the Ottoman Empire encroaching from the east. The Marinid and Saadi dynasties otherwise resisted foreign domination, and Morocco was the only North African nation to escape Ottoman dominion. The Saadi dynasty expanded its territory through the conquest of the Songhai Empire in the late 16th century. The Alawi dynasty, which rules the country to this day, seized power in 1631, and over the next two centuries expanded diplomatic and commercial relations with the Western world. It is among the world's oldest reigning royal dynasties. Morocco's strategic location near the mouth of the Mediterranean drew renewed European interest. In 1912, France and Spain established protectorates over the country and designated Tangier as an international zone, while the Sultan remained the formal sovereign with limited authority under colonial control. Following intermittent riots and revolts against colonial rule, Morocco regained its independence and reunified in 1956 under the leadership of Sultan Mohammed V.

Since independence, Morocco has remained relatively stable.

Summary adapted from Wikipedia: Morocco (CC BY-SA 4.0).

Morocco
Image via Wikimedia Commons.

Geography and Climate of Morocco

In 788, about a century after the Arab conquest of North Africa, a series of Muslim dynasties began to rule in Morocco. In the 16th century, the Sa'adi monarchy, particularly under Ahmad al-MANSUR (1578-1603), repelled foreign invaders and inaugurated a golden age. The Alaouite Dynasty, to which the current Moroccan royal family belongs, dates from the 17th century. In 1860, Spain occupied northern Morocco and ushered in a half-century of trade rivalry among European powers that saw Morocco's sovereignty steadily erode; in 1912, the French imposed a protectorate over the country. A protracted independence struggle with France ended successfully in 1956. The internationalized city of Tangier and most Spanish possessions were turned over to the new country that same year. Sultan MOHAMMED V, the current monarch's grandfather, organized the new state as a constitutional monarchy and in 1957 assumed the title of king. Since Spain's 1976 withdrawal from Western Sahara, Morocco has extended its de facto administrative control to roughly 75% of this territory; however, the UN does not recognize Morocco as the administering power for Western Sahara. The UN since 1991 has monitored a cease-fire, which broke down in late 2020, between Morocco and the Polisario Front -- an organization advocating the territory’s independence -- and restarted negotiations over the status of the territory in 2018. In 2020, the US recognized Morocco's sovereignty over all of Western Sahara. In 2011, King MOHAMMED VI responded to the spread of pro-democracy protests in the North Africa region by implementing a reform program that included a new constitution, passed by popular referendum, under which some new powers were extended to parliament and the prime minister, but ultimate authority remains in the hands of the monarch. Later that year, the Justice and Development Party (PJD) -- a moderate Islamist democratic party -- won the largest number of seats in parliamentary elections, becoming the first Islamist party to lead the Moroccan Government. In 2015, Morocco held its first direct elections for regional councils, which was one of the reforms included in the 2011 constitution. The PJD again won the largest number of seats in nationwide parliamentary elections in 2016, but it lost its plurality to the probusiness National Rally of Independents (RNI) in 2021. In 2020, Morocco signed a normalization agreement with Israel, similar to those that Bahrain, the United Arab Emirates, and Sudan had concluded with Israel earlier that year.

Location
Northern Africa, bordering the North Atlantic Ocean and the Mediterranean Sea, between Algeria and Mauritania.
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.
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.
Highest point
Jebel Toubkal 4,165 m.
Lowest point
Sebkha Tah -59 m.
Coastline
2,945 km.
Land borders
Total: 3,523.5 km; border countries: Algeria 1,941 km; Mauritania 1,564 km; Spain (Ceuta) 8 km and Spain (Melilla) 10.5 km.
Major rivers
Draa - 1,100 km.
Natural resources
Phosphates, iron ore, manganese, lead, zinc, fish, salt.
Land use
Agricultural land: 66.7% (2023 est.); arable land: 15.4% (2023 est.); permanent crops: 4.3% (2023 est.); permanent pasture: 47.1% (2023 est.); forest: 12.8% (2023 est.); other: 20.3% (2023 est.)
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.
Geographic note
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.
Languages
Arabic (official), Tamazight languages (Tamazight (official), Tachelhit, Tarifit), French (often the language of business, government, and diplomacy)
Religions
Muslim 99% (official; virtually all Sunni, <0.1% Shia), other 1% (includes Christian, Jewish, and Baha'i); note - Jewish about 3,000-3,500 (2020 est.)
Ethnic groups
Arab-Amazigh 99%, other 1%.
Economy
Lower middle-income North African economy; ongoing recovery from recent drought and earthquake; rebounding via tourism, manufacturing, and raw materials processing; significant trade and investment with EU; reform programs include fiscal rebalancing, state enterprise governance and private sector investments.

From the CIA World Factbook (public domain), archived edition of 2026-01-22. The Factbook is no longer updated, so figures reflect that edition.

Morocco in Numbers

Population
38.43 million
2025
GDP
US$182.4 billion
2025
GDP per person
US$4,672
2025
Life expectancy
75.5 years
2024
Population growth
0.91% a year
2025
Population density
85 per km²
2024
Urban population
63.1%
2025
Surface area
446,550 km²
2024
Forest cover
12.8%
2024
Arable land
15.8%
2024
Access to electricity
100.0%
2024
Internet users
91.2%
2024

Indicators from World Bank Open Data (CC BY 4.0). The year under each figure is its reference year.

Morocco in Depth

History

The area of present-day Morocco has been inhabited since at least Paleolithic times, beginning sometime between 190,000 and 90,000 BC. A recent publication has suggested that there is evidence for even earlier human habitation of the area: Homo sapiens fossils that had been discovered in the late 2000s near the Atlantic coast in Jebel Irhoud were recently dated to roughly 315,000 years ago. Hominin fossils from Thomas Quarry I in Casablanca, published in 2026, push evidence of hominin presence in the region back to approximately 773,000 years ago, near the root of the Homo sapiens lineage. During the Upper Paleolithic, the Maghreb was more fertile than it is today, resembling a savanna, in contrast to its modern arid landscape.

Geography

Morocco has a coast on the Atlantic Ocean that reaches past the Strait of Gibraltar into the Mediterranean Sea. It is bordered by Spain to the north (a water border through the Strait and land borders with three small Spanish-controlled exclaves, Ceuta, Melilla, and Peñón de Vélez de la Gomera), Algeria to the east, and Western Sahara to the south. Since Morocco controls most of Western Sahara, its de facto southern border is with Mauritania. The geography of Morocco spans from the Atlantic Ocean, to mountainous areas, to the Sahara desert. Morocco is a Northern African country, bordering the North Atlantic Ocean and the Mediterranean Sea, between Algeria and the annexed Western Sahara.

Economy

Morocco's economy is considered a liberal economy, governed by the law of supply and demand. Since 1993, the country has followed a policy of privatisation of certain economic sectors which used to be in the hands of the government. Morocco has become a major player in African economic affairs, and is the sixth largest economy in Africa by GDP (PPP). Morocco was ranked as the first African country by the Economist Intelligence Unit's quality-of-life index, ahead of South Africa. However, in the years since that first-place ranking was given, Morocco has slipped into fourth place behind Egypt.

In 2025, Morocco became Africa's leading industrial economy according to the African Development Bank, overtaking South Africa for the first time since the ranking began.

Demographics

Morocco has a population of around 36,828,330 inhabitants (2024 census). Morocco's population was 11.6 million in 1960. In 2024, 49.7% of the population is female, while 50.3% of it is male. According to the 2014 Morocco population census, there were around 84,000 immigrants in the country. Of these foreign-born residents, most were of French origin, followed by individuals mainly from various nations in West Africa and Algeria. There are also a number of foreign residents of Spanish origin.

Sections adapted from Wikipedia: Morocco (CC BY-SA 4.0).

Morocco: Key Facts

Key facts about Morocco
CurrencyMoroccan dirham
Official languagesArabic, Standard Moroccan Tamazight
Head of stateMohammed VI of Morocco
Head of governmentFatima Ezzahra El Mansouri
Form of governmentconstitutional monarchy
Calling code+212
Internet domain.ma
Highest pointJbel Toubkal
Lowest pointSebkha Tah
Established789 CE

Facts from Wikidata Q1028 (CC0).

History of Morocco: Empires and States

The atlas records 26 polities whose mapped territory included part of Morocco, from Carthage in 480 BCE to 2024 CE. They are listed in the order they first appear.

Polities that held Morocco, in chronological order
PolityPeriod here
Carthage480–198 BCE
Mauretania212 BCE – 42 CE
The Roman Empire43–438 CE
Western Roman Empire395–438 CE
Vandal Kingdom439–533 CE
The Umayyad Caliphate692–749 CE
Idrisids793–979 CE
Barghawata Conference793–1065 CE
Fatimid Caliphate922–946 CE
Caliphate of Córdoba980–1014 CE
Almoravid Dynasty1056–1151 CE
Almohad Caliphate1139–1343 CE
Marinid Sultanate1250–1467 CE
Wattasid dynasty1468–1555 CE
The Portuguese Empire1492–1546 CE
Portuguese Africa1507–1546 CE
Saadi Sultanate1556–1669 CE
Morocco1670–2024 CE
Kingdom of Spain1885–1931 CE
The Spanish Empire1885–1931 CE
French Third Republic1912–1939 CE
French Africa1912–1955 CE
The French Colonial Empire1912–1955 CE
Second Spanish Republic1932–1938 CE
Francoist Spain1939–1975 CE
French Fourth Republic1945–1955 CE

Historical Maps of Morocco

Morocco on the world map in each year one of these states held it:

Derived by testing mapped cities against dated territorial polygons. Dates are when the polygons cover this place, not the polity's whole lifespan, and polities absent from the source dataset are not listed.

Visiting Morocco

Morocco (Arabic: المغرب, Al-Maghrib; Berber: ⵍⵎⴰⵖⵔⵉⴱ, Elmaɣrib; French: Maroc) is the northwesternmost country in Africa. Morocco has, for most people, been the gateway to Africa. With plenty of attractive locations, historical sights, and unique cultural traditions, there's lots to see and do in this beautiful, mesmerising country. At just a few hours from the main European cities, Morocco has everything to overwhelm you with the amazing colours, smells and sounds of Islamic Africa. Imagine bustling souqs and spice markets, stunning mosques, white-washed sea side towns and medieval city centres. With panoramic views varying from snow-covered peaks in the High Atlas to the endless sand dunes of the Sahara, no-one ever has to be bored in this beautiful country.

Travel notes adapted from Wikivoyage: Morocco (CC BY-SA 4.0).

Largest Cities in Morocco

26 cities recorded. Ranked by metropolitan population. A port city's harbour is written up on the page of its sea.

Largest Cities in Morocco
#NamePopulation
1Casablanca3.18 million
2Rabat1.71 million
3Fez1.00 million
4Marrakesh872,000
5Agadir825,467
6Tangier750,060
7Meknes697,628
8Kenitra551,786
9Oujda409,391
10Safi353,476
11Ksar El Kebir306,600
12Er Rachidia228,489
13Taza199,633
14Laayoune188,084
15El Jadida180,470
16Settat161,748
17Larache120,082
18Goulimine115,267
19Ad Dakhla89,292
20Ouezzane69,658
21Tan Tan64,868
22Tiznit57,705
23Smara48,149
24Bir Anzarane6,597
25Lemsid100
The other 1 (population, region, role)
  1. Dawra · 10 · LaRyoune - Boujdour - Sakia El Hamra · Populated place

Highest Mountains in Morocco

4 mountains recorded. Ranked by summit elevation above sea level. A summit on a border is listed under both countries.

More on these mountains →
Highest Mountains in Morocco
#NameElevation
1Jebel Toubkal4,165 m
2Adrar Bou Nasser3,340 m
3Jebel Tidirhine2,456 m
4Jebel Lekst2,359 m

Rivers in Morocco

4 rivers recorded. Listed alphabetically. A river is listed where its mapped reach lies, so long rivers appear under more than one country.

Rivers in Morocco
NameType
MoulouyaRiver
Oued SebouRiver
Oum Er RbiaRiver
SousRiver

Ports in Morocco

12 ports recorded. Ranked by approach channel depth, the figure that limits which ships can call. Harbours link to their write-up on the page of the sea or coast they lie on.

Ports in Morocco
#NameChannel Depth
1Kenitra53 m
2el Jadida53 m
3Mohammedia45.7 m
4Agadir42.1 m
5Safi42.1 m
6Casablanca31.1 m
7Ad Dakhla31.1 m
8el Jorf Lasfar23.8 m
9Port D al Hoceima12.8 m
10Tangier-Mediterranean—
The other 2 (channel depth, class, sea, max vessel)
  1. Essaouira · Very Small · Atlantic Coast of Africa · point_of_interest
  2. Laayoune · Very Small · Atlantic Coast of Africa · medium vessels

UNESCO World Heritage Sites in Morocco

7 World Heritage Sites recorded. Listed by year of inscription, earliest first. Sites shared with another country appear under each.

More on these World Heritage Sites →
UNESCO World Heritage Sites in Morocco
#NameInscribed
1Medina of Fez1981
2Medina of Marrakesh1985
3Aït Benhaddou1987
4Medina of Meknes1996
5Medina of Tétouan1997
6Volubilis1997
7Rabat2012

Mountain Ranges, Deserts and Landforms of Morocco

9 mountain ranges, deserts and other landforms recorded. Ranked by mapped area. Covers mountain ranges, deserts, plateaus, named glaciers, plains, basins, peninsulas and capes. One that crosses a border is listed under every country it lies in, with the area of the whole feature.

More on these mountain ranges, deserts and other landforms →
Mountain Ranges, Deserts and Landforms of Morocco
#NameArea
1Africa29.41M km²
2Sahara4.73M km²
3Atlas Mountains63,011 km²
4Haut Atlas47,844 km²
5Moyen Atlas22,084 km²
6Hamada du Drâa11,707 km²
7Atlas Tellien172 km²
8Er Rif56 km²
9Anti Atlas2 km²

Countries Bordering Morocco

Land and maritime neighbours.

More Maps in Africa

Morocco: Quick Answers

What is the capital of Morocco?
The capital of Morocco is Rabat.
What is the population of Morocco?
Morocco has a population of about 38.43 million, the #41 largest of 225 countries in YearMaps. Source: World Bank, 2025.
How big is Morocco?
Morocco covers 446,550 km², ranking #59 by area, with about 86 people per square kilometre.
Which continent is Morocco in?
Morocco is in Africa.
Which countries border Morocco?
Morocco shares a land or maritime border with Spain, Algeria, Western Sahara.
What is the largest city in Morocco?
Casablanca is the largest city in Morocco, with a metropolitan population of about 3.18 million.
What is the highest mountain in Morocco?
The highest summit recorded for Morocco in YearMaps is Jebel Toubkal at 4,165 m (13,665 ft). Summits on a border are counted for both countries.