Skip to main content
CountryReports

Expanded History

History of Morocco

From antiquity to the modern era — the historical eras, key events, and narrative that shaped Morocco.

Speed

Overview

Morocco’s strategic location has shaped its history. Beginning with the Phoenicians, many foreigners were drawn to this area. Romans, Vandals, Visigoths, and Byzantine Greeks successively ruled the area. Arab forces began occupying Morocco in the seventh century A.D., bringing their civilization and Islam. The Alaouite dynasty, which has ruled Morocco since 1649, claims descent from the Prophet Muhammad.

Morocco’s location and resources led to early competition among European powers in Africa, beginning with successful Portuguese efforts to control the Atlantic coast in the 15th century. France showed a strong interest in Morocco as early as 1830. Following recognition by the United Kingdom in 1904 of France’s "sphere of influence" in Morocco, the Algeciras Conference (1906) formalized France’s "special position" and entrusted policing of Morocco to France and Spain jointly. The Treaty of Fes (1912) made Morocco a protectorate of France. By the same treaty, Spain assumed the role of protecting power over the northern and southern (Saharan) zones.

Nationalist political parties, which subsequently arose under the French protectorate, based their arguments for Moroccan independence on such World War II declarations as the Atlantic Charter (a joint U.S.-British statement that set forth, among other things, the right of all people to choose the form of government under which they live). A manifesto of the Istiqlal (Independence) Party in 1944 was one of the earliest public demands for independence. That party subsequently provided most of the leadership for the nationalist movement.

France’s exile of the highly respected Sultan Mohammed V in 1953 and his replacement by the unpopular Mohammed Ben Aarafa, whose reign was perceived as illegitimate, sparked active opposition to the French protectorate. France allowed Mohammed V to return in 1955, and the negotiations that led to Moroccan independence began the following year.

The Kingdom of Morocco recovered its political independence from France on March 2, 1956. Through agreements with Spain in 1956 and 1958, Morocco restored control over certain Spanish-ruled areas. The internationalized city of Tangier was reintegrated with the signing of the Tangier Protocol on October 29, 1956. The Spanish enclave of Ifni in the south became part of Morocco in 1969. Spain, however, retains control over the small coastal enclaves of Ceuta and Melilla in the north.

Historical Eras

The major periods of {country}’s history at a glance.

  1. Ancient & Roman Morocco

    1100 BCE – 788

    Phoenician traders established coastal settlements around 1100 BCE, followed by Carthaginian expansion and eventual Roman incorporation as the province of Mauretania Tingitana from the 1st century AD. After Rome's decline, Vandals, Visigoths, and Byzantine Greeks successively held portions of the region, laying fragmented groundwork before the transformative Arab conquests of the 7th century brought Islam and a new civilization to the Maghreb.

  2. Early Islamic Dynasties

    788 – 1062

    Arab forces completed the Islamization of Morocco, and in 788 Idris I founded the Idrissid dynasty, the first major Arab-Islamic ruling house of Morocco, claiming descent from the Prophet Muhammad. Successive Berber and Arab dynasties consolidated Islamic governance, and the founding of fortified cities like Marrakech in 788 reflected growing political ambition and urban sophistication across the region.

  3. Berber Imperial Dynasties

    1062 – 1554

    The Almoravid dynasty unified Morocco and extended its rule deep into the Iberian Peninsula and West Africa, followed by the Almohads and then the Merenids, who presided over a golden age of art, architecture, and scholarship in Fes. The period saw Morocco emerge as a confident independent state and a major Mediterranean and trans-Saharan power, though it also faced repeated challenges including a Spanish invasion attempt in 1267 and the arrival of Jewish refugees expelled from Spain in 1492.

  4. Saadian Dynasty

    1554 – 1669

    The Saadian sultans expelled Portuguese forces from most coastal fortresses and dramatically expanded Moroccan influence by sacking Timbuktu in 1591 and dominating trans-Saharan gold trade routes. Their reign produced notable architectural achievements in Marrakech, including the celebrated Saadian Tombs, and represented the last great pre-Alaouite dynasty before political fragmentation opened the door to the Alaouites.

  5. Alaouite Sultanate

    1649 – 1912

    The Alaouite dynasty, claiming descent from the Prophet Muhammad, consolidated Morocco under centralized rule and has governed continuously to the present day. European commercial and imperial pressure intensified through the 19th century, with France asserting a sphere of influence recognized by Britain in 1904 and formalized at the Algeciras Conference of 1906, ultimately culminating in the Treaty of Fes in 1912 which established a French protectorate and divided northern and southern zones between France and Spain.

  6. Protectorate & Independence

    1912 – 1956

    Under French and Spanish protectorate rule, Moroccan nationalist sentiment grew steadily, crystallizing in the Istiqlal Party's 1944 independence manifesto and galvanized when France exiled the revered Sultan Mohammed V in 1953. His return in 1955 signaled the end of French resistance, and Morocco recovered full political independence on March 2, 1956, with Tangier reintegrated later that year under the Tangier Protocol.

  7. Independent Kingdom

    1956 – present

    The Kingdom of Morocco under the Alaouite monarchy navigated post-independence nation-building, the contentious annexation of Western Sahara beginning in the late 1970s, and gradual democratization through the 1990s that established a bicameral legislature in 1997. The country has pursued moderate political reform and regional diplomacy while the status of Western Sahara remains one of Africa's longest-standing unresolved territorial disputes.

Timeline Preview

The first 7 key events. View the full chronology on the timeline page.

  1. 1100 BCE

    Phoenician settlements in Morocco

    Phoenician settlements in Morocco during the Bronze Age. First trading port is in Lixus near Larache.

  2. 500 BCE

    Carthaginians take over and expand the Moroccan Phoenician settlements

    Carthaginians take over and expand the Moroccan Phoenician settlements.

  3. 146 BCE

    Carthage falls to Rome

    Carthage falls to Rome in the Third Punic War. Roman influence spreads into the Berber kingdoms of Mauretania-Numidia.

  4. 27

    Morocco comes under direct Roman rule during the reign of Emperor Caligula.

    Morocco comes under direct Roman rule during the reign of Emperor Caligula.

  5. 535

    Byzantines occupy Ceuta on the north coast.

    Byzantines occupy Ceuta on the north coast.

  6. 600 – 700

    Muslims began a wave of invasions.

    Muslims began a wave of invasions.

  7. 788 – 923

    Idrissid Dynasty

    Idrissid Dynasty.