Discover Morocco
A Short History of Morocco
Morocco's story runs from Jbel Irhoud, where some of the oldest known Homo sapiens fossils were found, through Roman Volubilis and a succession of dynasties to the Alaouites, who have reigned since the seventeenth century. Successive dynasties ruled from different capitals, which is why Fes, Marrakech, Meknes and Rabat are known as the imperial cities.

Morocco's history at a glance
| Period | When | Where to see it today |
|---|---|---|
| Mauretania and Rome | Antiquity | Volubilis, near Meknes |
| Idrisids | 788–974 | Fes el-Bali; Moulay Idriss Zerhoun |
| Almoravids | 11th–12th centuries | Marrakech medina |
| Almohads | 1147–1269 | Koutoubia Mosque, Marrakech; Hassan Tower and Kasbah of the Udayas, Rabat |
| Marinids, then Wattasids | 13th–16th centuries | Bou Inania madrasa, Fes |
| Saadians | 16th–17th centuries | Saadian Tombs and El Badi Palace, Marrakech |
| Alaouites | 1660s–today | Moulay Ismail's Meknes |
| Protectorates | 1912–1956 | Rabat's protectorate-era city centre |
| Independence | 1956 | Mausoleum of Mohammed V, Rabat |
| Hassan II | 1961–1999 | Hassan II Mosque, Casablanca (completed 1993) |
| Mohammed VI | Since 1999 | Morocco 2030 projects |
Prehistory and Amazigh roots
Human history here is far older than the cities. Fossils found at Jbel Irhoud, in the province of Youssoufia, have been dated to about 300,000 years ago, among the oldest known remains of Homo sapiens.
Amazigh peoples lived across North Africa long before written records, and their languages and traditions remain part of everyday Morocco. Three of the great medieval dynasties, the Almoravids, the Almohads and the Marinids, were Amazigh.
Phoenicians, Mauretania and Rome
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, and Roman provincial rule later extended over the north of the 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.
By 788, Idris I had settled at Volubilis, then called Walili, where the Awraba, an Amazigh tribe, made him their leader.
Islam, the Idrisids and the founding 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.
Idris I founded the Idrisid dynasty and, in about 789, a first settlement at Fes on the east bank of the river; his son Idris II founded a second town on the west bank around 809 and made Fes his capital. Refugees from Córdoba and from Kairouan, in today's Tunisia, arrived in the early ninth century, and the two banks are still known as the Andalusian and Qarawiyyin quarters.
Tradition dates the founding of the Qarawiyyin mosque to 859 and credits Fatima al-Fihri. It developed into a major centre of Islamic learning and joined Morocco’s modern state university system in 1963.
Almoravids, Almohads and Marinids
Around 1070, the Almoravids founded Marrakech and made it the centre of a state linking Saharan routes with Morocco and al-Andalus, the Muslim-ruled parts of the Iberian Peninsula.
The Almohads, who emerged from the High Atlas, took Marrakech in 1147 and began the Koutoubia Mosque the same year, then extended their rule across much of the Maghreb and into al-Andalus. In Rabat they built the Kasbah of the Udayas and began the Hassan Tower, left unfinished when the caliph Yaqub al-Mansur died in 1199.
The Marinids took Fes in 1248 and Marrakech in 1269, ending Almohad rule, and made Fes their capital. Their madrasas, or colleges, such as Bou Inania (1350–55), still shape the old city.
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. Its routes carried commodities, knowledge and artistic influences, and also enslaved people.
From the Saadians to the Alaouites
After Marinid rule and the Wattasid period, the Saadians rose to power in the sixteenth century and made Marrakech their capital. In 1541 they took Agadir from the Portuguese, who then abandoned Safi and Azemmour. In 1578, at the Battle of the Three Kings near Ksar el-Kebir, an invading Portuguese army was defeated and three kings died, among them Sebastian of Portugal. The new sultan, Ahmad al-Mansur, built the El Badi Palace; the Saadian Tombs nearby date from the same dynasty.
The Alaouites, from the Tafilalet, took Fes and Marrakech in the 1660s and remain Morocco's royal dynasty. Moulay Ismail, whose 55-year reign (1672–1727) was the longest of any Moroccan sultan, made Meknes his capital and ringed it with walls and monumental gates. Medinas, Jewish quarters, religious institutions and craft districts grew and changed through all these periods.
Protectorates and independence, 1912–1956
European commercial and diplomatic pressure grew through the nineteenth century. The Treaty of Fez, signed on 30 March 1912, made most of the country a French protectorate; Spain took a zone in the north and a strip in the south around Tarfaya, and Tangier became an international zone in 1923. Rabat replaced Fes as the administrative capital.
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.
Armed resistance included the Rif War of 1921–26, in which Abd el-Krim's forces routed a Spanish army at Annual in 1921 before Spanish and French offensives ended the war. Nationalists presented the Independence Manifesto on 11 January 1944, now a public holiday. The French authorities exiled Mohammed V on 20 August 1953, a date commemorated as the Revolution of the King and the People. He returned on 16 November 1955, and Independence Day, 18 November, recalls the speech he gave two days later.
France recognised Morocco's independence on 2 March 1956, and Spain followed on 7 April, ending its protectorate in the north. Tangier's international status ended in October 1956; Tarfaya returned to Morocco in 1958 and Sidi Ifni in 1969.

Since 1956: the modern kingdom
Mohammed V took the title of king in 1957. His son Hassan II reigned from 1961 to 1999. In 1975 he called the Green March, a peaceful march by some 350,000 volunteers towards the south of the Kingdom; 6 November is now Green March Day, a public holiday. Mohammed VI succeeded his father in July 1999, and Throne Day, on 30 July, celebrates his accession.
Since independence, Morocco has built a national administration, schools and infrastructure while its towns and cities have kept growing. The 2011 Constitution, approved by referendum on 1 July 2011, made Amazigh an official language alongside Arabic; the culture guide describes the national identity it sets out. Several dates in this guide are public holidays, listed in our holidays guide.
Our Morocco Today guide takes up contemporary households, education, work and digital life.
Where to see Morocco's history
Each imperial city shows a different chapter. In Fes, the medina of Fes el-Bali is the Idrisid and Marinid city of scholars, merchants and artisans. In Marrakech, the Almohad Koutoubia, the Saadian Tombs and the ruins of El Badi are within walking distance of one another. Meknes is Moulay Ismail's city, and Rabat sets the Almohad Hassan Tower and Kasbah of the Udayas beside the planned streets of the protectorate. Volubilis, near Meknes, opens the Roman chapter.
Outside the cities, history is written into the landscape: irrigation channels and palm groves in the oases, kasbahs along the old caravan routes, fortified granaries in the Anti-Atlas. At any monument, look at what it was built for, who could enter it and how it has changed; many have been restored or given new uses.
The Jewish heritage guide covers the mellahs and synagogues, and the geography guide explains the valleys, coasts and routes that shaped these places.