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.
History of Morocco: quick timeline
| Period | Key events |
|---|---|
| Prehistory | Fossils at Jebel Irhoud, among the oldest known Homo sapiens remains |
| Antiquity | Amazigh peoples, Phoenician and Carthaginian trading posts, Kingdom of Mauretania |
| Roman era | Volubilis and Roman province of Mauretania Tingitana |
| 7th to 8th centuries | Arrival of Islam |
| 789 | Idriss I founds the Idrisid dynasty |
| 11th to 12th centuries | Almoravids found Marrakech; empire reaches Al-Andalus |
| 12th to 13th centuries | Almohads build the Koutoubia and Hassan Tower |
| 13th to 15th centuries | Marinids make Fes a great center of learning |
| 16th to 17th centuries | Saadians, victory at the Battle of the Three Kings in 1578 |
| 1666 to today | Alaouite dynasty |
| 1777 | Morocco among the first countries to recognize the United States |
| 1912 to 1956 | French and Spanish protectorates |
| 1956 | Independence |
| 1961 to 1999 | Reign of King Hassan II |
| 1999 to today | Reign of King Mohammed VI |
| 2011 | New Constitution recognizing Amazigh as an official language |
Prehistory
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 and antiquity
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 Roman period
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.
The arrival of Islam and the Idrisids
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 great Amazigh empires
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.
The Saadians
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 Alaouite dynasty
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.
The protectorates
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.
Independence
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.
Modern Morocco
- 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.
Where to see Moroccan history
| Period | Where to see it |
|---|---|
| Roman | Volubilis |
| Idrisid | Moulay Idriss, Fes |
| Almoravid and Almohad | Koutoubia, Hassan Tower, Bab Agnaou, Kasbah of the Udayas |
| Marinid | Fes madrasas, Chellah |
| Saadian | Saadian Tombs, El Badi Palace, Ben Youssef Madrasa |
| Alaouite | Meknes, Royal Palaces, Bahia Palace |
| Modern | Casablanca’s Art Deco center, Hassan II Mosque |
See landmarks in Morocco and the Moroccan empire.
Our take
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.
Frequently asked questions
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.
Explore our Morocco trips:
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.
Contact us

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.
Plan Your Trip
Click any destination to see more:
Marrakech Desert Tours
- 2 Days Desert Tour from Marrakech
- 3 Days Marrakech to Merzouga
- 3 Days Marrakech to Fes
- 4 Days Marrakech to Merzouga
- 4 Days Marrakech to Fes
- 5 Days Marrakech to Merzouga
- 5 Days Morocco Tour from Marrakech
- 6 Days Morocco Tour from Marrakech
- 7 Days Morocco Tour from Marrakech
- 8 Days Morocco Tour from Marrakech
- 8 Days with Imperial Cities
- 9 Days Morocco Tour from Marrakech
- 10 Days Morocco Tour from Marrakech
- 12 Days Morocco Tour from Marrakech
- 14 Days Morocco Tour from Marrakech