The Roman triumphal arch of Volubilis near Meknes, photographed on one of our trips

Morocco history: from Berber kingdoms to today

Morocco's history runs from prehistoric Amazigh (Berber) peoples, Phoenician ports and Roman Volubilis through a run of Islamic dynasties (Idrisid, Almoravid, Almohad, Marinid, Saadian) to today's Alaouite kings. France and Spain held protectorates from 1912 until independence in 1956, and the four imperial cities (Fes, Marrakech, Meknes and Rabat) still show every era.

Free quote · Step 1 of 3

Plan a history-led private trip

Who's travelling
How many
When
Free · no obligation · reply within 24 h or WhatsApp +212 701 664 704

In one paragraph

Morocco’s history, in brief

Morocco's history spans many thousands of years, from prehistoric Amazigh (Berber) communities through Phoenician trading posts and Roman Volubilis to a run of Islamic dynasties and today's constitutional monarchy. Idris I founded Fes in 789 and the Idrisids built Morocco's first Muslim state; the Almoravids founded Marrakech around 1070; the Almohads raised the Koutoubia and the Hassan Tower in the 12th century; the Marinids, Saadians and the ruling Alaouite dynasty followed. France and Spain held protectorates from 1912 to 1956, when Sultan Mohammed V led the country to independence. That layered past is still visible in the four imperial cities (Fes, Marrakech, Meknes and Rabat) and at sites such as Volubilis and Ait Benhaddou.

Illustrative Morocco scene: Local guide talking with a family in a Fes medina alley
Illustrative: a local guide with a family in the Fes medina, where most of this history can be walked.
  1. The ten eras
  2. Dynasties at a glance
  3. Imperial cities
  4. Where to see it
  5. UNESCO sites
  6. Modern Morocco

Timeline of Moroccan history

Ten eras, one land

Amazigh peoples, Phoenician traders, Roman governors and a run of Islamic dynasties each left their mark on the land and on the monuments you can still visit.

  1. Prehistory to about 1100 BCE

    Prehistory and Amazigh origins

    Morocco holds some of humanity’s deepest roots: fossils of early Homo sapiens at Jebel Irhoud are about 300,000 years old. Rock engravings in the High Atlas and Anti-Atlas record later hunters and herders. Amazigh (Berber) communities farmed the valleys, opened routes across the Sahara and kept a rich oral tradition.

    Lasting legacyThe Amazigh language (official since 2011, written in Tifinagh), khettara irrigation, village and tribal self-government.

    Palm groves below an earth-built ksar in the Tinghir oasis, photographed on one of our trips
    An earth-built ksar in the Tinghir oasis
  2. About 800 BCE to 146 BCE

    Phoenician and Carthaginian ports

    Phoenician traders from the Levant set up coastal posts at Lixus, Mogador (Essaouira) and Tingis (Tangier), trading murex dye, gold, ivory and grain. Ancient writers dated Lixus to around 1100 BCE; finds there go back to about the 8th century BCE. Under Carthage these ports joined a Punic network across the western Mediterranean.

    Lasting legacyMaritime trade, the first towns on the Atlantic and Mediterranean coasts, exchange between North Africa and the Levant.

    Illustrative Morocco scene: Essaouira ramparts and blue fishing boats under blue sky
    Essaouira, ancient Mogador · illustrative
  3. 1st century BCE to 5th century CE

    Roman Mauretania

    After Carthage fell, the Berber kingdom of Mauretania became a Roman client state and, from 40 CE, the province of Mauretania Tingitana. Volubilis, near today’s Meknes, flourished as a major city with a forum, a triumphal arch and fine mosaics. The region shipped olive oil and grain to Rome and kept its Berber character.

    Lasting legacyThe ruins of Volubilis (UNESCO), olive growing, Roman roads that later trade routes followed.

  4. 7th to 8th century CE

    Islam arrives

    Arab armies under Uqba ibn Nafi reached Morocco around 681 and brought Islam. Many Berber tribes embraced the faith but resisted Arab rule, rising in the Great Berber Revolt of 739 to 743. Lowland towns slowly took up Arabic while mountain and desert Berbers kept their languages: the Arab and Amazigh character Morocco still has.

    Lasting legacyIslam as the state religion, Arabic in the cities, the mosque at the heart of town planning.

  5. 788 to 974

    The Idrisids

    Idris I, a descendant of the Prophet fleeing Abbasid persecution, founded Morocco’s first Muslim dynasty in 788 and the city of Fes in 789. His son Idris II made Fes his capital, and it grew into a centre of scholarship and trade. The Idrisids set the model of a sharif, a descendant of the Prophet, as the legitimate ruler.

    Lasting legacyFes; the Qarawiyyin, founded in 859 and often cited as the oldest continuously operating university; sharifian kingship.

    The Chouara tannery dye pits in the Fes medina, photographed on one of our trips
    The Chouara tanneries in Fes el-Bali
  6. 1040 to 1147

    The Almoravids

    A reforming movement of the Saharan Sanhaja Berbers, led in its great years by Yusuf ibn Tashfin. They founded Marrakech around 1070, took much of the Maghreb and crossed into Spain to win at Sagrajas in 1086. Their empire ran from the Senegal River to central Spain, the first to unite Morocco and al-Andalus.

    Lasting legacyMarrakech; the Almoravid Koubba, its only surviving Almoravid building; trans-Saharan gold routes; Maliki law.

  7. 1121 to 1269

    The Almohads

    Masmuda Berbers of the High Atlas, inspired by the preacher Ibn Tumart at Tin Mal, overthrew the Almoravids and built the largest empire in Moroccan history, from the whole Maghreb to Muslim Spain. Their builders raised the Koutoubia in Marrakech, the Hassan Tower in Rabat and the Giralda in Seville.

    Lasting legacyThe Koutoubia, the Hassan Tower, the Tin Mal mosque, a golden age of Andalusian-Moroccan art.

    Illustrative Morocco scene: Rooftop terrace with mint tea and the Koutoubia at sunset
    The Koutoubia minaret, Marrakech · illustrative
  8. 1244 to 1465

    The Marinids

    Zenata Berbers from the eastern plains who took Fes and made it their capital. Unable to hold Spain, they poured their ambition into building: the madrasas of Fes, Bou Inania and al-Attarine among them, and the necropolis at Chellah. Their era is the high point of zellige, carved stucco and cedarwood.

    Lasting legacyThe Fes madrasas, Chellah, the perfected crafts of zellige, carved plaster and cedar.

  9. 1549 to 1659

    The Saadians

    Sharifs from the Draa Valley who rose by leading the fight against Portuguese forts on the coast. Ahmed al-Mansur took the Songhai Empire and its gold routes, built the El Badi Palace and the Saadian Tombs in Marrakech, and traded envoys with Elizabethan England.

    Lasting legacyThe Saadian Tombs, the ruins of El Badi, the Battle of the Three Kings (1578).

  10. 1631 to today

    The Alaouites

    The ruling dynasty, sharifs from the Tafilalt who held all Morocco from the 1660s. Moulay Ismail (r. 1672 to 1727) made Meknes his capital and built a vast palace city. The dynasty held off European pressure through the 19th century before the protectorate of 1912. Mohammed V led the country to independence in 1956, and his grandson Mohammed VI reigns today.

    Lasting legacyMeknes as imperial city, the makhzen tradition of royal government, the constitutional monarchy.

Amazigh culture today

Seven dynasties, twelve centuries

Moroccan dynasties at a glance

Illustrative Morocco scene: Marrakech souk street with hanging lamps and Koutoubia minaret at sunset
Illustrative: the Koutoubia minaret, raised under the Almohads.
Idrisid
788 to 974 · Fes
First Moroccan Muslim dynasty; founded Fes; the Qarawiyyin
Rulers: Idris I, Idris II
Almoravid
1040 to 1147 · Marrakech
Founded Marrakech; united Morocco and al-Andalus; Saharan trade
Rulers: Yusuf ibn Tashfin, Ali ibn Yusuf
Almohad
1121 to 1269 · Marrakech
Largest Moroccan empire; Koutoubia and Hassan Tower
Rulers: Abd al-Mu’min, Yaqub al-Mansur
Marinid
1244 to 1465 · Fes
The great madrasas; zellige and stucco at their peak; Chellah
Rulers: Abu al-Hasan, Abu Inan Faris
Wattasid
1472 to 1554 · Fes
Carried on Marinid traditions; faced Portuguese forts on the coast
Rulers: Muhammad al-Shaykh al-Wattasi
Saadian
1549 to 1659 · Marrakech
Battle of the Three Kings; El Badi Palace; Songhai gold
Rulers: Mohammed ash-Sheikh, Ahmed al-Mansur
Alaouite
1631 to today · Meknes, then Rabat
Ruling dynasty; independence in 1956; constitutional monarchy
Rulers: Moulay Ismail, Mohammed V, Hassan II, Mohammed VI

What each dynasty built: the architecture guide

Four capitals

Morocco’s four imperial cities

Each served as the capital of a great dynasty, and together they hold most of the country’s monuments. A private route through them is the clearest way to see Moroccan history.

  • Illustrative Morocco scene: Fes medina alley lined with brass lanterns and craft stallsIllustrative

    Fesفاس

    Founded 789, by Idris I · Idrisid and Marinid capital

    The spiritual and scholarly capital of Morocco, home to the Qarawiyyin, founded in 859. Fes el-Bali, the old medina, is a UNESCO site and often called one of the largest car-free urban areas in the world: thousands of lanes, mosques and working craft shops.

    Key monuments: The Qarawiyyin, Bou Inania and al-Attarine madrasas, Chouara tanneries, Dar Batha, the Royal Palace gates, the Mellah, the Marinid Tombs.

  • Hundreds of brass lanterns lit in a Marrakech souk, photographed on one of our trips

    Marrakechمراكش

    Founded About 1070, by the Almoravids · Almoravid, Almohad and Saadian capital

    The Red City was capital to three great dynasties and launched empires reaching from the Senegal River to Spain. Jemaa el-Fnaa, recognised by UNESCO for its oral heritage, keeps up storytelling, music and trade nearly a thousand years old.

    Key monuments: The Koutoubia, Bahia Palace, El Badi Palace, the Saadian Tombs, Ben Youssef Madrasa, Jemaa el-Fnaa, the Almoravid Koubba, the Menara gardens.

  • Illustrative Morocco scene: Meknes Bab Mansour gate in golden evening light with strollersIllustrative

    Meknes

    Founded 11th century; imperial capital from 1672 · Alaouite capital under Moulay Ismail

    Moulay Ismail turned a modest town into a capital meant to rival Versailles: miles of walls, royal stables said to have held 12,000 horses, vast granaries and the Bab Mansour gate, often called the finest in North Africa.

    Key monuments: Bab Mansour, Heri es-Souani granaries and stables, the Moulay Ismail Mausoleum, Place el-Hedim, Dar Jamai.

  • Illustrative Morocco scene: Blue-and-white Kasbah des Oudayas lane in Rabat leading to the riverIllustrative

    Rabat

    Founded 12th-century Almohad fortress; capital since 1912 · Modern capital

    The capital under the French protectorate and since independence. Almohad walls, the Andalusian Kasbah des Oudayas and the unfinished Hassan Tower stand beside a modern Ville Nouvelle and the Mohammed VI Museum of Modern and Contemporary Art. Its historic core is a UNESCO site.

    Key monuments: The Hassan Tower, Mausoleum of Mohammed V, Kasbah des Oudayas, Chellah, the Royal Palace, the Mohammed VI Museum.

The imperial cities route
A great earthen kasbah with crenellated towers, photographed on one of our trips
Morocco’s history is not behind glass. You walk on its mosaics and through its gates.
Pictured: an earthen kasbah in the south, photographed on one of our trips.
Where to see it

Historic sites you can visit

Twelve sites, in eight places

Roman mosaic floors, 700-year-old madrasas and a Portuguese cistern: these are living places, not museum pieces. Each place links to the trip that reaches it.

  1. LaracheLixus
  2. RabatChellah · Kasbah des Oudayas · Hassan Tower
  3. VolubilisVolubilis
  4. FesBou Inania Madrasa
  5. El JadidaPortuguese Cistern
  6. MarrakechKoutoubia Mosque · El Badi Palace · Bahia Palace
  7. Tin MalTin Mal Mosque
  8. Ait BenhaddouAit Benhaddou
12345678
The whole of Morocco, as on official Moroccan maps. Numbers match the places below.
  1. Larache

    Historic sites in Larache

    Lixus

    Phoenician and Roman

    Above the Loukkos River, one of Morocco’s oldest archaeological sites, which ancient writers linked to the Garden of the Hesperides. Phoenician salt-fish works, Roman baths, an amphitheatre and a hilltop acropolis, and far fewer visitors than Volubilis.

    Visitor tip: Go in daylight and bring water. A local guide gives context the site itself does not.

  2. Rabat

    Historic sites in Rabat

    Chellah

    Roman and Marinid

    Marinid royal tombs and a mosque among the ruins of Roman Sala Colonia, with storks nesting on the broken minarets and fig trees in the walls. Recently restored: Morocco’s layers in one enclosure.

    Visitor tip: Late-afternoon light suits the gardens. Allow about an hour and a half.

    Kasbah des Oudayas

    Almohad, 12th century

    A fortified kasbah on the cliff above the Bou Regreg and the Atlantic. Its great Almohad gate, Bab Oudaia, is a masterpiece of military architecture; inside, a quiet Andalusian garden.

    Visitor tip: The terrace café over the river mouth is the place for sunset.

    Hassan Tower

    Almohad, begun 1195

    Yaqub al-Mansur meant this to be the largest mosque in the world; work stopped at his death in 1199. The unfinished minaret stands about 44 metres, and rows of stone columns mark the prayer hall that was never built. The Mausoleum of Mohammed V stands beside it.

    Visitor tip: See the mausoleum on the same visit; the royal guards add to the ceremony.

  3. Illustrative Morocco scene: Volubilis-inspired Roman columns and rolling northern Moroccan countrysideIllustrative

    Volubilis

    Historic sites in Volubilis

    Volubilis

    Roman, 1st to 3rd century CE

    The best-preserved Roman ruins in Morocco and a UNESCO site: a triumphal arch, the Capitol temple, a basilica and mosaic floors of myths, below the Zerhoun hills.

    Visitor tip: Go early to beat the heat. Allow two to three hours, and pair it with the holy town of Moulay Idriss next door.

  4. Fes

    Historic sites in Fes

    Bou Inania Madrasa

    Marinid, 1351 to 1356

    Often called the finest madrasa in Morocco, a school and congregational mosque in one, every surface in zellige, carved stucco and cedar. Across the lane are the remains of its famous medieval water clock.

    Visitor tip: Midday light fills the courtyard. Allow about 45 minutes, and look up for the water clock opposite.

  5. El Jadida

    Historic sites in El Jadida

    Portuguese Cistern

    Portuguese, 1514

    Under the Portuguese fortress of Mazagan, a thin sheet of water mirrors Gothic ribbed vaults and columns. Orson Welles filmed scenes of Othello here, and the fortified town around it is a UNESCO site.

    Visitor tip: Midday, when light falls through the opening in the roof and the water is still.

  6. Marrakech

    Historic sites in Marrakech

    Koutoubia Mosque

    Almohad, 12th century

    The largest mosque in Marrakech and the model for Seville’s Giralda and Rabat’s Hassan Tower. Its 77-metre minaret is seen from almost everywhere; the name comes from the booksellers (kutubiyyin) who once traded below.

    Visitor tip: Non-Muslims cannot go inside, but the gardens around it are lovely, above all lit up at night.

    El Badi Palace

    Saadian, begun 1578

    Built by Ahmed al-Mansur after the Battle of the Three Kings and once dressed in Italian marble, gold and onyx. Moulay Ismail later stripped it for Meknes; the sunken gardens and great walls remain.

    Visitor tip: Climb the corner terrace for views over the medina to the Atlas, and look for the storks on the walls.

    Bahia Palace

    Late 19th century

    Built by the grand vizier Si Moussa and enlarged by his son Ba Ahmed: courtyards, painted cedar ceilings, zellige floors and carved stucco that sum up centuries of Moroccan craft.

    Visitor tip: Arrive at opening time for quiet courtyards, then walk on to the Mellah next door.

  7. Tin Mal

    Historic sites in Tin Mal

    Tin Mal Mosque

    Almohad, 1156

    In a High Atlas valley, the birthplace of the Almohad movement, where Ibn Tumart preached the reform that built an empire. Badly damaged in the September 2023 Al Haouz earthquake: the minaret fell and much of the prayer hall collapsed. Rebuilding with the original materials has been under way since 2024, with works relaunched in 2025. We have not seen it confirmed reopened to visitors, so ask us before you plan around it.

    Visitor tip: Under restoration, last checked October 2026. Access also depends on the mountain road.

  8. Ait Benhaddou rising above palms and a terrace, photographed on one of our trips

    Ait Benhaddou

    Historic sites in Ait Benhaddou

    Ait Benhaddou

    Earthen ksar, rebuilt over centuries

    A UNESCO fortified village on the old caravan route between the Sahara and Marrakech, its earth kasbahs stacked up a hillside. It has stood in for many film sets, Gladiator among them.

    Visitor tip: Cross the river and climb to the granary at the top. Morning light is best; allow two to three hours.

World Heritage

Nine UNESCO sites in Morocco

Roman ruins, medieval medinas and Portuguese walls: Morocco’s nine World Heritage sites cover the whole sweep of its past.

Illustrative Morocco scene: Essaouira ramparts and white town with blue fishing boats in the foreground
Illustrative: the ramparts of Essaouira, a UNESCO site since 2001.
  1. 1981

    Medina of Fes

    Often called one of the largest car-free urban areas in the world, with the Qarawiyyin and medieval workshops still at work.

  2. 1985

    Medina of Marrakech

    Founded around 1070: the Koutoubia, the Saadian Tombs, palaces and Jemaa el-Fnaa.

  3. 1987

    Ksar of Ait Benhaddou

    A fortified earthen village on the old caravan route between the Sahara and Marrakech.

  4. 1996

    Historic City of Meknes

    Moulay Ismail’s capital: monumental gates, granaries and palace walls.

  5. 1997

    Archaeological Site of Volubilis

    Roman ruins with fine mosaics, a triumphal arch and the Capitol temple.

  6. 1997

    Medina of Tetouan

    An Andalusian town rebuilt by refugees from Granada after 1492.

  7. 2001

    Medina of Essaouira (Mogador)

    An 18th-century fortified Atlantic port mixing North African and European military design.

  8. 2004

    Portuguese City of Mazagan (El Jadida)

    An early 16th-century Portuguese fortress town with its Gothic cistern.

  9. 2012

    Rabat, Modern Capital and Historic City

    Almohad walls, Andalusian heritage and 20th-century protectorate town planning together.

Heritage and UNESCO sites in depth

1912 to 1956

The colonial period: French and Spanish protectorates

By the late 19th century European powers were competing for Morocco. The Algeciras Conference of 1906 and the Agadir Crisis of 1911 led to the Treaty of Fes in 1912: a French protectorate over most of the country and a Spanish one over the northern Rif and parts of the far south (Tarfaya and Ifni).

The French protectorate

Resident-General Lyautey kept the medinas and built new European towns beside them, the twin cities still seen in Rabat, Casablanca, Fes and Marrakech. France brought railways, ports, phosphate mining and French-language schools. The period also gave rise to the nationalist movement of Allal al-Fassi and the Istiqlal Party.

The Spanish zone

Spain ruled a smaller zone from its capital at Tetouan, with the Rif mountains and parts of the Saharan coast. Abd el-Krim’s Rif War (1921 to 1926) was a fierce anti-colonial rising that briefly set up a Rif Republic before French and Spanish forces crushed it. Spanish is still heard in Tetouan and Tangier.

Illustrative Morocco scene: Tangier hilltop medina lane with white houses overlooking the sea
Tangier, 1923 to 1956. Tangier was an International Zone from 1923 to 1956, run by several European powers. The enclave drew writers, artists and spies, and its bohemian legend lives on. (Illustrative.)

The Tangier guide

Independence to today

Modern Morocco

Illustrative Morocco scene: Hassan II Mosque Casablanca beside the ocean under blue sky
The Hassan II Mosque, Casablanca, completed in 1993 · illustrative
  1. 1956 to 1961

    Independence and Mohammed V

    Morocco won independence on 2 March 1956. The French exile of Sultan Mohammed V in 1953 had roused the whole country, and his return in 1955 became a founding story. He took the title of king in 1957, brought the Spanish zones back in and laid the foundations of the state before his early death in 1961.

  2. 1961 to 1999

    Hassan II

    A 38-year reign of consolidation: the Green March of 1975 into the Spanish Sahara and the building of the Hassan II Mosque in Casablanca, one of the largest in the world. The repression of the "Years of Lead" was later examined by the Equity and Reconciliation Commission set up under his successor.

  3. 1999 to today

    Mohammed VI

    A modernising reign: Africa’s first high-speed train, the Tanger Med port, the 2004 family code, the 2011 constitution that made Amazigh an official language, the Noor solar complex at Ouarzazate and large-scale heritage restoration.

  4. Casablanca tours
A lantern-lit dinner setting in the dunes at night, photographed on one of our trips

After you ask for a quote

What you get within 24 hours

  • A day-by-day route, with the driving time between stops
  • Stays matched to your style (riads, kasbahs, desert camps or hotels), named so you can look them up
  • Which moments are private to you, and which are shared, such as a camp’s dining tent
  • An itemised quote: what is included and what is not
  • Who is planning your trip, and how to reach them on WhatsApp
  • Free, with no obligation to book

Every trip is private and priced to your dates, so there is no fixed price list. Ask, and the proposal shows the full cost before anything is booked.

Moroccan history: your questions

What is the oldest city in Morocco?

Fes, founded by Idris I in 789, is the oldest of the imperial cities, and its old medina has been lived in ever since. Older settlements stood on the coast: Lixus near Larache goes back to Phoenician times, around the 8th century BCE.

Why does Morocco have four imperial cities?

Each great dynasty chose its own capital: Fes (Idrisids, Marinids), Marrakech (Almoravids, Almohads, Saadians), Meknes (the Alaouite sultan Moulay Ismail) and Rabat (capital since 1912). Each city carries the buildings of the dynasty that chose it.

What is the difference between Berber and Arab identity in Morocco?

The Amazigh (Berbers) are the indigenous people of North Africa, here thousands of years before the Arab conquest of the 7th century. Most Moroccans today have mixed heritage. About a quarter of Moroccans speak an Amazigh language, which has been official alongside Arabic since the 2011 constitution.

How did French colonisation influence Morocco?

The French protectorate (1912 to 1956) shaped roads, railways, schools, town planning and law. New European towns were built beside the old medinas, and French is still widely used in business and universities.

What are the best historical sites to visit?

Volubilis, the medina of Fes el-Bali, the Koutoubia and Bahia Palace in Marrakech, the Hassan Tower and Kasbah des Oudayas in Rabat, Ait Benhaddou, and the Portuguese Cistern in El Jadida. Most of Morocco’s UNESCO sites are in or near the four imperial cities.

Is a private history guide worth it in Morocco?

Yes. Many sites have little or no signage, so a local guide gives you the dynasties, the architecture and the stories you would otherwise miss, and finds the way through the medinas. Every trip we plan is private, and we quote it free within 24 hours.

When did Morocco gain independence?

On 2 March 1956, ending 44 years of French and Spanish protectorates. Sultan Mohammed V, exiled by the French in 1953, returned in 1955 and became king in 1957; his grandson Mohammed VI reigns today.

What is the history of Jewish communities in Morocco?

Jewish life in Morocco goes back more than 2,000 years and grew after 1492, when Sephardic Jews expelled from Spain found refuge here. The community peaked at about 250,000 in the 1940s; a few thousand remain, mostly in Casablanca. Synagogues, cemeteries and mellahs are cared for across the country.

ⴰⵣⵓⵍ
azul · hello, in Tamazight

Walk through Morocco’s history, era by era.

Volubilis, the Fes madrasas, the Almohad towers and the kasbahs of the south. Tell us what draws you and how long you have; a planner in Casablanca replies within 24 hours with a private route, a local guide at each site and a free quote.

Free quote · Step 1 of 3

Plan a history-led private trip

Who's travelling
How many
When
Free · no obligation · reply within 24 h or WhatsApp +212 701 664 704

المغربⵜⴰⴳⵍⴷⵉⵜ ⵏ ⵍⵎⵖⵔⵉⴱThe Kingdom of Morocco