Britannica AI Icon
Adding us as a Preferred Source tells Google you trust our content, so our articles show up more often in your Google Search, Discover feed, and AI Overviews.
verifiedCite
While every effort has been made to follow citation style rules, there may be some discrepancies. Please refer to the appropriate style manual or other sources if you have any questions.
Select Citation Style
Feedback
Corrections? Updates? Omissions? Let us know if you have suggestions to improve this article (requires login).
Thank you for your feedback

Our editors will review what you’ve submitted and determine whether to revise the article.

External Websites
Britannica Websites
Articles from Britannica Encyclopedias for elementary and high school students.
Top Questions

Why is MAR the country code of Morocco?

What is the significance of the Almoravids in Moroccan history?

Where is Morocco?

What are the main geographical features of Morocco?

How does Morocco’s climate vary across the country?

What are the major religions of Morocco?

What languages are spoken in Morocco?

Morocco, mountainous country of western North Africa that lies directly across the Strait of Gibraltar from Spain.

The traditional domain of indigenous peoples now collectively known as Berbers (self-name Imazighen; singular, Amazigh), Morocco has been subject to extensive migration and has long been the location of urban communities that were originally settled by peoples from outside the region. Controlled by Carthage from an early date, the region was later the westernmost province of the Roman Empire. Following the Arab conquest of the late 7th century ce, the broader area of North Africa came to be known as the Maghrib (Arabic: “the West”), and the majority of its people accepted Islam. Subsequent Moroccan kingdoms enjoyed political influence that extended beyond the coastal regions, and in the 11th century the first native Amazigh dynasty of North Africa, the Almoravids, gained control of an empire stretching from Andalusian (southern) Spain to parts of sub-Saharan Africa. Attempts by Europeans to establish permanent footholds in Morocco beginning in the late 15th century were largely repulsed, but the country later became the subject of Great Power politics in the 19th century. Morocco was made a French protectorate in 1912 but regained independence in 1956. Today it is the only monarchy in North Africa.

Quick Facts
Flag of Morocco: red field with a centered green five-pointed star formed by interlaced lines.
See article: flag of Morocco
Audio File: National anthem of Morocco
Head Of Government:
Prime Minister2: Fatima Zahra El Mansouri
Capital:
Rabat
Population:
(2026 est.) 36,694,000
Head Of State:
King: Muhammad VI
Form Of Government:
constitutional monarchy with two legislative houses (House of Councillors [1201]; House of Representatives [3952])
Official Languages:
Arabic; Tamazight3
Official Religion:
Islam
Official Name:
المملكة المغربية (Al-Mamlakah al-Maghribiyyah; “Kingdom of Morocco”)
Total Area (Sq Km):
415,560
Total Area (Sq Mi):
160,835
Monetary Unit:
Moroccan dirham (DH)
Population Rank:
(2026) 43
Population Projection 2030:
38,923,000
Density: Persons Per Sq Mi:
(2026) 228.1
Density: Persons Per Sq Km:
(2026) 88.1
Urban-Rural Population:
Urban: (2023) 64.8%
Rural: (2023) 35.2%
Life Expectancy At Birth:
Male: (2022) 75.2 years
Female: (2022) 78.6 years
Gni (U.S.$ ’000,000):
(2024) 148,591
Gni Per Capita (U.S.$):
(2024) 3,840
  1. All seats indirectly elected.
  2. In the 2026 legislative elections, 305 seats elected by constituency; 90 seats reserved for women elected by national list.
  3. Per constitutional reforms adopted by referendum in July 2011.

Although the country is rapidly modernizing and enjoys a rising standard of living, it retains much of its ancient architecture and even more of its traditional customs. Morocco’s largest city and major Atlantic Ocean port is Casablanca, an industrial and commercial centre. The capital, Rabat, lies a short distance to the north on the Atlantic coast. Other port cities include Tangier, on the Strait of Gibraltar, Agadir, on the Atlantic, and Al-Hoceïma, on the Mediterranean Sea. The city of Fès is said to have some of the finest souks, or open-air markets, in all of North Africa. Scenic and fertile, Morocco well merits the praise of a native son, the medieval traveler Ibn Baṭṭūṭah, who wrote that “it is the best of countries, for in it fruits are plentiful, and running water and nourishing food are never exhausted.”

Land

Morocco borders Algeria to the east and southeast, Western Sahara to the south, the Atlantic Ocean to the west, and the Mediterranean Sea to the north. It is the only African country with coastal exposure to both the Atlantic Ocean and the Mediterranean Sea. Its area—excluding the territory of Western Sahara, which Morocco controls—is slightly larger than the U.S. state of California. Two small Spanish enclaves, Ceuta and Melilla, are situated on the country’s northern coast.

Discover the fascinating events that shaped the world, straight from our editors.
By clicking “Sign Up”, you consent to the Britannica Privacy Policy and Terms of Use.