Skip to main content

Discover Morocco

A Short History of Morocco

Morocco's history runs through ancient settlements, Amazigh societies, Islamic dynasties, trading cities and the struggle for independence. The most useful chronology connects those changes to the places, languages and institutions you encounter today.

Stone ruins at the archaeological site of Volubilis in Morocco

Before the written histories

Human activity in the land now called Morocco reaches far beyond the first cities or royal dynasties. Discoveries at Jbel Irhoud, in the province of Youssoufia, are important evidence in the study of early Homo sapiens. Prehistory belongs to a much longer timescale than the kingdoms and communities described in written records.

Amazigh peoples are central to North Africa's history and to Morocco's continuing identity. They should not be treated as an ancient population that disappeared when later influences arrived. Their languages and cultural traditions remain part of the country, while Amazigh communities have also participated in its changing states, religions and cities.

Mediterranean connections and Roman-era Morocco

Phoenician and later Carthaginian trading connections drew parts of the coast into wider Mediterranean networks. Local settlements and the kingdom of Mauretania developed within that world. Roman provincial rule subsequently covered parts of northern Morocco, not the whole territory of the present-day country.

Volubilis makes some of these connections visible. It was a centre of the Mauretanian kingdom before becoming an important Roman town. Its houses, mosaics and public buildings sit in an agricultural landscape, a reminder that the town depended on its surroundings as well as distant imperial links.

The end of Roman administration did not erase local life. The later history of Volubilis also connects with the early Idrisid period. Archaeological sites are often records of several occupations, rather than a single civilisation preserved at one moment.

Islam, the Idrisids and the growth of Fes

The arrival of Islam in the late seventh and early eighth centuries brought lasting religious and linguistic changes. Its spread was a process involving local communities, new authorities and wider connections across North Africa. It did not turn a diverse region into a culturally uniform one overnight.

From the late eighth century, Idris I and his successors established the Idrisid dynasty. Fes grew as an early capital and a centre of religious learning, trade and urban life. Its history includes people arriving from elsewhere in the Islamic Mediterranean, alongside the communities already living in the region.

This is one reason the history of Moroccan cities is also a history of exchange. A mosque or school tells part of the story; markets, workshops and residential quarters show how learning, livelihoods and daily life developed around it.

Marrakech and the medieval dynasties

In the eleventh century, the Almoravids founded Marrakech and made it a centre of a state linking Saharan routes with Morocco and al-Andalus, the Muslim-ruled parts of the Iberian Peninsula. The Almohads, emerging from the High Atlas in the twelfth century, succeeded them and extended their authority across much of the Maghreb and into al-Andalus.

The Marinids later made Fes a major centre of power. Their madrasas, or colleges, are among the buildings that still shape the city's historic character. The move between capitals matters: different dynasties invested in different places, leaving Morocco with several important centres rather than one city that explains every period.

Across these centuries, trade connected inland towns, Mediterranean ports and communities south of the Sahara. Sijilmassa, near present-day Rissani in the Tafilalet, was a major caravan-trading centre. Routes carried commodities and people, including enslaved people, as well as knowledge and artistic influences; cultural exchange was not always voluntary or peaceful.

From the Saadians to the Alaouites

After Marinid rule and the Wattasid period, the Saadians rose to power in the sixteenth century. Marrakech was again a capital, and the Saadian Tombs and El Badi Palace remain visible traces of the dynasty. Portuguese and Spanish coastal involvement formed part of the wider pressures and trading relationships of this era.

The Alaouite dynasty established its authority in the seventeenth century and remains Morocco's royal dynasty. Under Moulay Ismail, Meknes became a capital with a large imperial complex. These developments built on an existing city, rather than creating its history from nothing.

Medinas, Jewish quarters, religious institutions and craft districts developed through these changing periods. The architecture seen today is often the result of additions, repairs and changes of use. A building's current appearance is not always a direct picture of the century in which it began.

Protectorates, resistance and independence

European commercial and diplomatic pressure intensified before the protectorate period. The Treaty of Fez established the French protectorate in 1912, while Spain administered other zones. Tangier later had an international administration. Morocco's colonial experience therefore differed between places.

Colonial administration changed land use, transport and urban development. Rabat's twentieth-century administrative districts, for example, sit beside much older parts of the city. These buildings are evidence of the protectorate, not the beginning of Rabat's history.

Resistance included armed struggles and organised nationalist activity. Mohammed V's forced exile in 1953 became a major turning point in the independence movement. He returned in November 1955. France recognised Moroccan independence in March 1956, followed by Spain's recognition concerning its northern protectorate zone in April. The ending of colonial administration elsewhere followed different timelines.

View across the historic medina of Fes, with its densely built rooftops

Reading history in Morocco's cities

Different cities make different parts of the timeline visible. In Fes, the old medina and its historic institutions speak to centuries of scholarship, craftsmanship and commerce. In Marrakech, the Koutoubia, Saadian Tombs and surviving palace structures point to several dynasties rather than a single golden age. Meknes offers another view of royal investment under Moulay Ismail.

Rabat brings older monuments and twentieth-century administrative districts into the same city. At Volubilis, the archaeological landscape opens a much earlier chapter. These places work best as complementary examples: none can stand for the whole history of Morocco.

When visiting a historic building, look for what it was originally used for, who could enter it, and how it has been altered. A restored gate, museum or courtyard may preserve historic fabric while serving a different purpose today. This makes the experience more rewarding than trying to assign every visible detail to one date or dynasty.

Independence and the modern country

After independence, Morocco developed its national administration, education system and infrastructure while its towns and cities continued to grow. These changes affected the relationship between rural communities, regional centres and the larger cities. The modern country is not simply the old medina with newer roads added around it.

The 2011 Constitution recognises the country's Arab-Islamic, Amazigh and Saharan-Hassani components and its African, Andalusian, Hebraic and Mediterranean influences. This offers a useful connection between the historical strands above and the languages, arts and communities of the present.

For those connections, continue with Moroccan culture. Our Morocco Today guide takes up contemporary households, education, work and digital life, without treating history as a simple march from tradition to modernity.

History beyond palaces and monuments

Royal capitals and surviving monuments are only part of Morocco's history. Agricultural terraces, irrigation channels, market towns and caravan routes tell stories of the people who worked and travelled between political centres. In oasis areas, the relationship between settlement and water can be as revealing as the surviving buildings.

Communities also preserve history through place names, family accounts, craft knowledge and local traditions. These records are different from official chronicles, and memories may offer more than one account of the same period. In a museum or historic district, pay attention to whose stories are presented and which everyday lives are less visible.

The geography guide explains the valleys, coasts and routes that helped shape these histories. Read it alongside the chronology to see why different towns became centres of trade, farming or political power.

Explore more about Morocco →