History of Morocco

Morocco’s history is one of the richest in Africa and the Mediterranean world. Some of the oldest known fossils of our own species were found here. Phoenicians traded on its coast, Romans built cities in its plains, Amazigh kingdoms ruled its mountains, and powerful Islamic dynasties based in Marrakech and Fes once controlled territories from the Sahara to Spain. Today’s Kingdom of Morocco is ruled by the Alaouite dynasty, one of the oldest reigning royal families in the world.

This guide gives a clear overview of the history of Morocco, from prehistory to the present, with a timeline, the great dynasties, the colonial period, independence and modern Morocco, plus the places where you can see this history on your trip.

PeriodKey events
PrehistoryFossils at Jebel Irhoud, among the oldest known Homo sapiens remains
AntiquityAmazigh peoples, Phoenician and Carthaginian trading posts, Kingdom of Mauretania
Roman eraVolubilis and Roman province of Mauretania Tingitana
7th to 8th centuriesArrival of Islam
789Idriss I founds the Idrisid dynasty
11th to 12th centuriesAlmoravids found Marrakech; empire reaches Al-Andalus
12th to 13th centuriesAlmohads build the Koutoubia and Hassan Tower
13th to 15th centuriesMarinids make Fes a great center of learning
16th to 17th centuriesSaadians, victory at the Battle of the Three Kings in 1578
1666 to todayAlaouite dynasty
1777Morocco among the first countries to recognize the United States
1912 to 1956French and Spanish protectorates
1956Independence
1961 to 1999Reign of King Hassan II
1999 to todayReign of King Mohammed VI
2011New Constitution recognizing Amazigh as an official language

At Jebel Irhoud, west of Marrakech, scientists discovered fossils of early Homo sapiens that were dated in 2017 to around 300,000 years ago, pushing back the known origins of our species. Rock art in the south and prehistoric tools across the country show that people have lived in Morocco for a very long time.

The Amazigh, often called Berbers, are the indigenous people of North Africa. Phoenician and later Carthaginian traders founded posts on the coast, such as Lixus near Larache. Amazigh kingdoms emerged, including the Kingdom of Mauretania. See who are the Berbers.

The Romans annexed the region in the 1st century AD as the province of Mauretania Tingitana, with cities like Volubilis and Tingis (Tangier). The ruins of Volubilis, with their mosaics and triumphal arch, are the best place to see this period.

Islam reached Morocco in the late 7th century. In 788, Idriss ibn Abdallah arrived and was welcomed by Amazigh tribes; in 789 he founded the Idrisid dynasty, the first Moroccan Islamic state. His son Idriss II developed Fes, which became a center of religion and learning. See Moulay Idriss and Al Quaraouiyine, founded in 859.

The Almoravids

In the 11th century, the Almoravids, from the Saharan Sanhaja tribes, built an empire stretching from Senegal to Al-Andalus. They founded Marrakech, which gave its name to the country in many languages. See history of Marrakech.

The Almohads

In the 12th century, the Almohads, from the High Atlas, replaced them and created one of the largest empires in the history of the western Islamic world. They built the Koutoubia Mosque, the Hassan Tower and the Giralda of Seville.

The Marinids

From the 13th to 15th centuries, the Marinids made Fes their capital and built beautiful madrasas such as the Bou Inania Madrasa.

In the 16th century, the Saadians took power and made Marrakech their capital. In 1578, at the Battle of the Three Kings near Ksar el-Kebir, Morocco defeated a Portuguese invasion. Sultan Ahmad al-Mansur built the El Badi Palace and the Saadian Tombs. See El Badi Palace and Saadian Tombs.

The Alaouites came to power in the 17th century and still reign today. Sultan Moulay Ismail, who ruled from 1672 to 1727, made Meknes his imperial capital. See Bab Mansour. In 1777, Sultan Mohammed III recognized the independence of the United States, one of the first countries to do so. See Moroccan royal family.

In 1912, the Treaty of Fes placed most of Morocco under a French Protectorate, while Spain controlled zones in the north and south. Tangier became an international zone. The period brought new cities, roads and railways, but also resistance movements, such as the Rif War led by Abdelkrim el-Khattabi in the 1920s. See did France colonize Morocco and was Morocco colonized by Spain.

After years of nationalist struggle, and the exile and return of Sultan Mohammed V, Morocco regained its independence in 1956. Mohammed V became king, and Morocco began building a modern state.

  • King Hassan II reigned from 1961 to 1999. His reign saw the construction of the Hassan II Mosque and major political changes.
  • King Mohammed VI came to the throne in 1999, launching reforms, infrastructure projects such as the high-speed train and Tanger Med port, and the 2004 family code reform.
  • In 2011, a new Constitution recognized Amazigh as an official language alongside Arabic.
  • In 2030, Morocco will co-host the FIFA World Cup. See Morocco World Cup 2030 stadiums.

See who is the king of Morocco and how old is Morocco.

PeriodWhere to see it
RomanVolubilis
IdrisidMoulay Idriss, Fes
Almoravid and AlmohadKoutoubia, Hassan Tower, Bab Agnaou, Kasbah of the Udayas
MarinidFes madrasas, Chellah
SaadianSaadian Tombs, El Badi Palace, Ben Youssef Madrasa
AlaouiteMeknes, Royal Palaces, Bahia Palace
ModernCasablanca’s Art Deco center, Hassan II Mosque

See landmarks in Morocco and the Moroccan empire.

Morocco’s history is visible everywhere you go: Roman columns in a wheat field, Almohad minarets, Marinid madrasas, Saadian tombs and the gates of Moulay Ismail. Understanding this story makes every visit richer. Our Morocco custom tours include licensed guides who bring this history to life.

How old is Morocco?

People have lived in Morocco for hundreds of thousands of years. The first Moroccan Islamic state was founded in 789 by Idriss I.

Who founded Morocco?

Idriss I is considered the founder of the first Moroccan Islamic dynasty, the Idrisids, in 789.

When did Morocco gain independence?

In 1956, from France and Spain.

What dynasty rules Morocco today?

The Alaouite dynasty, in power since the 17th century.

Was Morocco a colony?

Morocco was under French and Spanish protectorates from 1912 to 1956.

What are the great dynasties of Morocco?

The Idrisids, Almoravids, Almohads, Marinids, Wattasids, Saadians and Alaouites.

Tours from Marrakech: Cross the High Atlas to Ait Ben Haddou and the dunes of Erg Chebbi.

Morocco Desert Tours: Camel trekking and a night under the stars in a Sahara desert camp.

Tours from Fes: The oldest medina in Morocco, then the Middle Atlas and the desert.

Tours from Casablanca: Begin at the Hassan II Mosque and travel through the imperial cities.

Tours from Tangier: Start in the north with Chefchaouen and the Rif Mountains.

Tours from Ouarzazate: Kasbahs, film studios and the gorges of the south.

Name
Lahcen Saadi, a professional local guide from the Exploring Morocco Trips team, in traditional attire in front of a 4x4 in the Sahara dunes

Your Local Experts

Our Moroccan team organizes private tours from every major city in Morocco: Marrakech, Fes, Casablanca, Tangier, Rabat, Agadir, Ouarzazate and more. Wherever you land, we pick you up and design your trip around your dates and interests.

Scroll to Top