Country
Morocco
The lands of Morocco have been home since deep antiquity to the ancestors of the Berbers (Amazigh); Phoenicians and Carthaginians settled on the coast, followed by the kingdom of Mauretania and a Roman province. In the 8th century the Arabs brought Islam, and under the Idrisids the first Muslim state arose, centred on Fez.
Antiquity
- c. 300,000 years ago
The People of Jebel Irhoud
In the Jebel Irhoud cave between Marrakesh and Safi, skulls and bones were found of people who lived about 300,000 years ago. Their faces were almost indistinguishable from ours, though their braincases were still elongated. These are the oldest known remains of Homo sapiens: the 2017 discovery showed that our species took shape across the whole of Africa, not only in its east.
Morocco became one of the key sites in the story of human origins.
Jebel Irhoudon the map →
- c. 15,000–13,000 years ago
The Hunters of Taforalt
At the end of the Ice Age the Maghreb was inhabited by hunter-gatherers of the Iberomaurusian culture. In the Taforalt cave (the "Cave of Pigeons") in the country's northeast, one of the oldest cemeteries in the world was found, with dozens of burials. People gathered acorns and pine nuts and hunted Barbary sheep. Shell beads about 82,000 years old were also found there, among the oldest ornaments known.
Taforalton the map →
- 6th–3rd millennium BC
The First Farmers and Herders
From the 6th millennium BC, pottery decorated with shell impressions appeared in northern Morocco, along with sheep, goats and cattle, followed by wheat and barley. Farming arrived partly across the Mediterranean, from Spain. In the High Atlas mountains, for example on the Oukaimeden plateau, Bronze Age herders left thousands of rock carvings of weapons, shields and animals.
Oukaimedenon the map →
- 8th–6th centuries BC
Phoenicians on the Atlantic
Seafarers from Phoenician Tyre passed through the Strait of Gibraltar and founded trading posts on the Atlantic coast. The most important was Lixus near present-day Larache; on an islet off Essaouira (Mogador) they traded with local tribes. Later the coast came under the rule of Carthage. The Phoenicians brought writing, the potter's wheel and the cults of their gods.
Lixuson the map →
- 25 BC – AD 40
The Kingdom of Mauretania
The Berber tribes of the Mauri united into the kingdom of Mauretania; one known king was Bocchus, an ally of Rome. In 25 BC the emperor Augustus placed Juba II on the Mauretanian throne, a learned Numidian prince married to Cleopatra Selene, the daughter of Cleopatra. Juba wrote books on history and geography, and his second capital, Volubilis, was adorned with temples and palaces.
Volubilison the map →
- 40–44
The Roman Province of Tingitana
In 40 the emperor Caligula summoned King Ptolemy, the son of Juba II, to Rome and had him executed. The freedman Aedemon raised a revolt that Roman troops took several years to crush. In 44 the country became the province of Mauretania Tingitana, with its capital at Tingis (Tangier). Rome held only the north; by the end of the 3rd century it had abandoned Volubilis as well and withdrawn to the coast.
The south and the mountains remained the lands of independent Berber tribes.
Tingis (Tangier)on the map →
- 429
The Vandals Cross the Strait
In May 429 the Germanic Vandals together with the Alans, some 80,000 people led by King Genseric, crossed from Spain to Africa near present-day Ceuta and Tangier. From here they moved east towards the rich provinces of Numidia and Carthage. Northern Morocco ended up on the fringe of their realm, and later the town of Septem (Ceuta) was taken by the Byzantines.
Septem (Ceuta)on the map →
- 681–711
The Coming of the Arabs
In 681–683 the Arab commander Uqba ibn Nafi led a raid across the entire Maghreb to the Atlantic. The real conquest was carried out by the governor Musa ibn Nusayr in 705–710: many Berber tribes embraced Islam and joined the Arab army. In 711 the Berber Tariq ibn Ziyad crossed into Spain with a force from Tangier and began its conquest.
Morocco became part of the Islamic world and a bridge between Africa and Spain.
Tangieron the map →
- 740–744
The Great Berber Revolt
Berbers who had embraced Islam suffered from the exactions of Arab governors, who demanded tribute in slaves. In 740, under the banner of the Kharijites, a teaching of the equality of all Muslims, Maysara al-Matghari raised a revolt in Tangier. The rebels routed the Arabs in the "Battle of the Nobles", and the caliphs' authority in the far west collapsed. On the Atlantic plains the kingdom of the Barghawata arose with its own distinctive creed.
Tangieron the map →
- 757
Sijilmasa, Gateway to the Sahara
In 757 Kharijite Berbers of the Miknasa tribe founded the city of Sijilmasa in the Tafilalt oasis; it was ruled by the Midrarid dynasty. The city became the northern gateway to the Sahara: from here camel caravans crossed the desert to Awdaghust and to Ghana, the land of gold. Gold, slaves and ivory came north, while salt, cloth, copper and dates went south.
Trans-Saharan trade linked the Maghreb with West Africa.
Sijilmasaon the map →
- 789–808
The Idrisids and the Founding of Fez
Idris ibn Abdallah, a descendant of the Prophet Muhammad, fled Arabia to escape persecution by the Abbasids and in 788 was recognised as imam by the Awraba Berbers at Volubilis. He founded Morocco's first Muslim state. Around 789 Idris I laid out a town on the Fez River, and in 808 his son Idris II built a second town on the opposite bank and made Fez his capital.
Fezon the map →
- 859
The Al-Qarawiyyin Mosque
Fez grew thanks to settlers: refugees from Córdoba came to one quarter, and from Kairouan to another. In 859 Fatima al-Fihri, the daughter of a wealthy merchant from Kairouan, built the al-Qarawiyyin mosque at her own expense. A school grew up around it that in time became one of the oldest continuously operating institutions of higher learning in the world. After the death of Idris II the Idrisid realm was divided among his sons.
Fezon the map →
Middle Ages (1000–1499)
Between 1000 and 1500 the lands of Morocco were home to Berbers, the Zenata, Masmuda and Sanhaja, and to newly arrived Arabs; from here came three great Berber dynasties, the Almoravids, the Almohads and the Marinids, who ruled the Maghreb and Muslim Spain. By the end of the 15th century the country had weakened under the Wattasids, and the Portuguese had gained a foothold on the coast.
- c. 1000
The Maghreb Between Two Caliphates
Around 1000 there was no single state in the lands of Morocco. Fez, founded by the Idrisids in the 9th century, passed back and forth between chiefs of the Zenata Berbers, who served now the Umayyad Caliphate of Córdoba, now the Fatimids of Egypt. On the Atlantic plain the heretical state of the Barghawata tribes held out, while in the south the oasis of Sijilmasa, the northern gateway of the trans-Saharan gold trade, grew rich.
Fezon the map →
- 1054–1056
The Almoravids Emerge from the Desert
The preacher Abdallah ibn Yasin united the nomadic Sanhaja tribes, the Lamtuna, Guddala and Massufa, into the al-Murabitun movement ("people of the ribat"), preaching a stern Maliki Islam. In 1054–1056 their cavalry, faces veiled, took the trading cities of Awdaghust and Sijilmasa. Thus began the conquest of Morocco by the warriors of the Sahara.
For the first time Morocco was united not by newcomers from the East but by Berbers from the desert itself.
Sijilmasaon the map →
- c. 1070
The Founding of Marrakesh
Around 1070 the Almoravid leader Abu Bakr ibn Umar set up a camp at the foot of the High Atlas that grew into the city of Marrakesh. His cousin Yusuf ibn Tashfin made Marrakesh his capital, subdued Fez and the northern regions in 1069–1075, and then pushed on to Tlemcen and Algiers. Marrakesh later gave its name to the whole country: "Morocco" in European languages.
Marrakeshon the map →
- 23 October 1086
The Battle of Zallaqa
The Muslim rulers of Spain, hard pressed by King Alfonso VI of Castile after the loss of Toledo (1085), called on Yusuf ibn Tashfin for help. His army crossed the Strait of Gibraltar and on 23 October 1086 crushed the Castilians at Zallaqa (Sagrajas) near Badajoz. Soon Yusuf deposed the allied emirs themselves and annexed al-Andalus to his realm.
The Almoravid empire stretched from the Senegal River to the Ebro valley.
Zallaqa (Sagrajas)on the map →
- 1121–1130
Ibn Tumart at Tinmel
Ibn Tumart, a theologian of the Masmuda tribe who had studied in the East, denounced the Almoravids for straying from the faith and preached strict monotheism (tawhid). In 1121 the Atlas highlanders proclaimed him the Mahdi, and around 1124 he fortified himself in the mountain village of Tinmel. His followers came to be called al-Muwahhidun, the Almohads, "those who affirm the unity of God".
Tinmelon the map →
- 1147
The Almohads Take Marrakesh
Ibn Tumart's successor Abd al-Mumin, who took the title of caliph, captured the mountain districts and then Fez over 15 years of war. In 1147, after a long siege, the Almohads took Marrakesh; the last Almoravid ruler was killed and many inhabitants were massacred. Later the 77-metre minaret of the Koutoubia mosque rose over the city.
Marrakeshon the map →
- 1159–1160
An Empire from the Atlantic to Tripoli
In 1159–1160 Abd al-Mumin marched his army to Ifriqiya, recaptured the coastal city of Mahdia from the Normans of Sicily, and for the first time in history united the entire Maghreb, from the Atlantic to Tripoli, under a single Berber dynasty. The Almohads also subdued Muslim Spain, making Seville their second capital.
Marrakeshon the map →
- 1195
A Court of Scholars in Marrakesh
Under the caliphs Abu Yaqub Yusuf and Yaqub al-Mansur, the philosophers Ibn Tufayl and Ibn Rushd (Averroes) worked in Marrakesh; Ibn Rushd's commentaries on Aristotle were later studied in the universities of Europe. In 1195 al-Mansur defeated the Castilians at Alarcos and, in celebration, began a huge mosque in Rabat, of which only the unfinished Hassan Tower remains.
Rabaton the map →
- 16 July 1212
Las Navas de Tolosa
The kings of Castile, Aragon and Navarre joined forces against the Almohads, and the pope proclaimed a crusade. On 16 July 1212, in the Sierra Morena mountains, the army of Caliph Muhammad al-Nasir was routed. The defeat sapped the dynasty's strength: Muslim cities in Spain began to fall, while in the Maghreb provinces broke away and tribes rebelled.
This battle marked the beginning of the decline of Muslim power in Spain.
Las Navas de Tolosaon the map →
- 1269
The Marinids Take Marrakesh
From the 1240s the nomadic Zenata tribe of the Banu Marin took city after city from the weakening Almohads. In 1269 Sultan Abu Yusuf Yaqub captured Marrakesh, bringing the Almohads to an end. The Marinid capital was Fez, next to which a new palace city, Fez el-Jedid, rose in 1276.
Fezon the map →
- 30 October 1340
Defeat at the Salado
The Marinid sultan Abu al-Hasan Ali tried to restore Muslim control over the Strait of Gibraltar. On 30 October 1340 his army, together with the forces of Granada, was defeated on the Salado River near Tarifa by the armies of Castile and Portugal. It was the last major Moroccan campaign in Spain.
Salado River (Tarifa)on the map →
- 1350–1355
The Madrasas of Fez and Ibn Battuta
The Marinids adorned Fez with richly carved madrasas topped with green tiled roofs, such as the Attarine and the Bou Inania (1350–1355). At the court of Sultan Abu Inan, the traveller Ibn Battuta of Tangier, who had journeyed across the world from Mali to China, dictated the account of his travels in 1355. The young historian Ibn Khaldun also served here.
Fezon the map →
- 21 August 1415
The Portuguese Take Ceuta
On 21 August 1415 the Portuguese fleet of King John I, with Prince Henrique (the future Henry the Navigator), seized by surprise the rich port of Ceuta on the African shore of the Strait of Gibraltar. It was the first overseas possession of Europeans in Africa. An attempt to take Tangier in 1437 ended in failure and the capture of Prince Fernando.
Ceuta marked the beginning of the era of Portuguese colonial expansion.
Ceutaon the map →
- 1465–1472
The Wattasids in Fez
Regents from the Wattasid clan, kinsmen of the Marinids, effectively ruled the country from 1420. In 1465 the people of Fez rose up and killed the last Marinid sultan, Abd al-Haqq II, and power briefly passed to the sharifs. In 1472 Muhammad al-Shaykh of the Wattasid family took Fez and became sultan, but his authority barely reached the south of the country.
Fezon the map →
- 1484–1492
Refugees from Andalusia
Around 1484 settlers from Granada led by Sidi al-Mandari rebuilt the ruined town of Tetouan. After the fall of Granada in 1492, thousands of Muslims and Jews expelled from Spain poured into Fez, Tetouan, Rabat and Chefchaouen. The Andalusians brought crafts, architecture and music to Morocco, along with a thirst for revenge that later fuelled piracy.
Tetouanon the map →
From 1500 to the present
Morocco is an ancient sultanate in northwest Africa and one of the few Arab countries never to become part of the Ottoman Empire. Over 500 years it fought off the Portuguese and the Spanish, experienced golden ages and crises under the Saadi and Alaouite dynasties, became a protectorate of France and Spain in 1912, and in 1956 regained its independence, becoming a constitutional monarchy engaged in a dispute over Western Sahara.
- 1415–1514
Portuguese Fortresses on the Coast
Around 1500 Morocco was fragmented: the weak Wattasids ruled in Fez, while local sheikhs and Sufi brotherhoods held sway in the south. The Portuguese, who had taken Ceuta back in 1415, seized Asilah and Tangier (1471), founded Santa Cruz (Agadir, 1505), occupied Safi (1508) and built Mazagan (El Jadida, 1514). The fortresses controlled the trade in grain, sugar and Saharan gold.
The foreign seizure of the coast gave rise to a holy war movement that brought a new dynasty to power.
Agadir (Santa Cruz)on the map →
- 1541–1554
The Rise of the Saadis
The Saadis, a sharifian family from the Draa valley who traced their lineage to the Prophet Muhammad, led the jihad against the Portuguese. In 1525 they took Marrakesh, and in 1541 they stormed Agadir, after which the Portuguese abandoned Safi and Azemmour. In 1549 Sultan Muhammad al-Shaykh entered Fez, and in 1554 he finally put an end to the Wattasids.
Marrakeshon the map →
- 4 August 1578
The Battle of the Three Kings
The young King Sebastian of Portugal landed at Asilah to restore the deposed sultan al-Mutawakkil to the throne. Near Ksar el-Kebir his army was crushed by the forces of Sultan Abd al-Malik. All three monarchs died in the battle: Sebastian, al-Mutawakkil and Abd al-Malik himself, who succumbed to illness. The throne passed to his brother Ahmad al-Mansur ("the Victorious").
Portugal lost its king and the flower of its nobility, and in 1580 fell under Spanish rule.
Ksar el-Kebiron the map →
- 1590–1591
The March Across the Sahara
Ahmad al-Mansur, grown rich on ransoms for Portuguese captives and on sugar, resolved to seize the gold of West Africa. About 4,000 soldiers under Judar Pasha, a Spanish renegade, crossed the desert in a few months and in March 1591 defeated the army of the Songhai Empire at Tondibi: muskets and cannon prevailed over spears and bows. The Moroccans occupied Gao and Timbuktu.
Songhai fell apart, but Morocco was unable to hold the distant lands beyond the Sahara.
Tondibi (near Gao)on the map →
- 1609–1668
The Moriscos and the Corsairs of Salé
After al-Mansur's death in 1603 his sons began a civil war, and the country fell apart. In the same years Spain expelled the Moriscos, descendants of the Muslims of Andalusia. Thousands of them settled in Rabat and Salé, where in 1627 the virtually independent "Republic of Bou Regreg" arose. The corsairs of Salé seized merchant ships in the Atlantic and raided as far as Ireland and Iceland.
Salé and Rabaton the map →
- 1666–1669
The Alaouites Come to Power
A new sharifian dynasty, the Alaouites, rose from the Tafilalt oasis. Moulay al-Rashid took Fez in 1666 and Marrakesh in 1669, reuniting the country after half a century of turmoil. The Alaouites rule Morocco to this day: the present king, Mohammed VI, is a direct descendant of the dynasty's founders.
Fezon the map →
- 1672–1727
Moulay Ismail and Meknes
Sultan Moulay Ismail reigned for 55 years. He created an army of Black slaves, the Abid al-Bukhari, up to 150,000 strong, and built a vast capital at Meknes with palaces, stables and granaries. He recaptured Mehdia (1681), Larache (1689) and Asilah (1691) from the Europeans, while in 1684 the English abandoned Tangier of their own accord, a city they had received as the dowry of a Portuguese princess.
Mekneson the map →
- 1757–1790
Mohammed III and the Outside World
Sultan Sidi Mohammed ibn Abdallah staked his rule on trade with Europe. In the 1760s he built the port of Mogador (Essaouira) to a design by a French engineer, and in 1769 forced the Portuguese to abandon Mazagan, their last fortress. In 1777 Morocco was among the first countries to recognise the independence of the United States, and the 1786 treaty of friendship became the oldest unbroken treaty in US history.
Essaouira (Mogador)on the map →
- 14 August 1844
The Battle of Isly
Sultan Abd al-Rahman supported the Algerian emir Abd al-Qadir in his war against the French. In response the French fleet bombarded Tangier and Mogador, and Marshal Bugeaud's army defeated a Moroccan force three times its size on the Isly River near Oujda. The sultan was forced to abandon his support for Abd al-Qadir. The defeat exposed the army's backwardness and spurred the first military reforms.
Isly River (near Oujda)on the map →
- 1859–1860
The Hispano-Moroccan War
Clashes near Ceuta served as the pretext for war. In February 1860 the Spanish army of General O'Donnell took Tetouan. Under the Treaty of Wad Ras, Morocco paid a huge indemnity of 100 million pesetas, expanded Ceuta's borders and ceded to Spain the enclave of Ifni on the Atlantic coast. The debt to Spain undermined the sultanate's finances and opened the way to foreign interference.
Tetouanon the map →
- 1905–1906
The Moroccan Crises
France, having reached agreements with Britain (1904) and Spain, was preparing to bring Morocco under its control. On 31 March 1905 the German Kaiser Wilhelm II landed at Tangier and declared his support for the sultan's independence. The Algeciras Conference of 1906 preserved Morocco's formal sovereignty but placed the police and the state bank under French and Spanish control. In 1907 the French occupied Oujda and Casablanca.
Tangieron the map →
- 30 March 1912
The Treaty of Fez: The Protectorate
After the second crisis of 1911, when the German gunboat Panther sailed into Agadir, Germany conceded Morocco to France in exchange for part of the Congo. On 30 March 1912 Sultan Moulay Abd al-Hafid signed the treaty establishing a French protectorate in Fez. Spain received a northern zone around Tetouan and the southern strip of Tarfaya, and from 1923 Tangier became an international zone.
Morocco lost its independence for 44 years, although the sultan formally remained on the throne.
Fezon the map →
- 1912–1925
Lyautey and the New Cities
The first resident-general, Hubert Lyautey, made Rabat the capital, preserved the old medinas and built European "new towns" beside them. Casablanca, with its new port, grew from a modest town into the country's economic capital. Settlers bought up the best land for vineyards and citrus groves, and from 1921 phosphate mining began at Khouribga; phosphates are Morocco's chief natural wealth.
Casablancaon the map →
- 1921–1926
The Rif War
In July 1921 the Berber tribes of the Rif, led by Abd el-Krim, utterly defeated the Spanish at Annual: about 10,000 soldiers were killed. Abd el-Krim proclaimed the Republic of the Rif. Only the combined forces of Spain and France, more than 400,000 soldiers under Pétain's command, with aircraft and chemical weapons, forced him to surrender in 1926.
The Rif War became one of the first anti-colonial uprisings to capture the attention of the whole world.
Annualon the map →
- 1942–1943
The Allied Landings
On 8 November 1942 American troops under General Patton landed near Casablanca, Fedala, Safi and Port Lyautey as part of Operation Torch; the forces of Vichy France surrendered three days later. In January 1943, at Casablanca (Anfa), Roosevelt and Churchill agreed to demand Germany's unconditional surrender. Roosevelt met Sultan Mohammed V in private and expressed sympathy for his aspirations to freedom.
Casablancaon the map →
- 1944–1955
The Revolution of the King and the People
In January 1944 the Istiqlal party published a manifesto calling for independence. Sultan Mohammed V openly backed the nationalists, and on 20 August 1953 the French exiled him and his family to Corsica and then to Madagascar. The exile set off a wave of strikes and attacks, and a Liberation Army emerged in the north. In November 1955 France restored the sultan to the throne.
Rabaton the map →
- 2 March 1956
Independence
On 2 March 1956 France recognised Morocco's independence; in April Spain gave up the northern zone, and in October Tangier's international status was abolished. In 1957 Mohammed V took the title of king. Spain returned the Tarfaya strip in 1958 and Ifni in 1969, but kept Ceuta and Melilla, which remain Spanish to this day (Morocco claims them).
The revived kingdom regarded the unification of its "historic lands" as unfinished.
Rabaton the map →
- 29 February 1960
The Agadir Earthquake
On the night of 29 February 1960, an earthquake of magnitude about 5.8 destroyed Agadir in 15 seconds. Between 12,000 and 15,000 people died, about a third of the city's population, and the kasbah and almost every house were destroyed. The city was rebuilt from scratch a few kilometres to the south on a modern plan; today Agadir is the country's largest resort and fishing port.
Agadiron the map →
- October 1963
The Sand War
King Hassan II, who came to the throne in 1961, laid claim to part of the Sahara that had gone to Algeria under French rule, the areas of Tindouf and Béchar. In October 1963, a year after Algerian independence, fighting broke out at Hassi Beida, Tinjoub and Figuig. With Ethiopia and Mali mediating, the two sides agreed a ceasefire in February 1964, and the border remained unchanged.
The conflict laid the foundation for a long-standing rivalry between Morocco and Algeria.
Figuigon the map →
- 1963–1970s
Labour Migration to Europe
In 1963 Morocco signed labour recruitment agreements with West Germany and France, in 1964 with Belgium and in 1969 with the Netherlands. Hundreds of thousands of men from the Rif and the Souss left for the factories and mines of Europe, and their families later joined them. Today about 5 million people of Moroccan origin live in Europe, and their remittances are one of the country's main sources of income.
Al Hoceima (Rif)on the map →
- 1971–1972
Assassination Attempts and the "Years of Lead"
On 10 July 1971 rebel cadets attacked the palace at Skhirat during the king's birthday celebration: about a hundred guests were killed, but Hassan II survived. In August 1972 air force pilots fired on the royal plane; the plot's organiser, General Oufkir, died. Years of harsh repression against the opposition followed, with secret prisons such as Tazmamart; the era later became known as the "Years of Lead".
Skhiraton the map →
- 6 November 1975
The Green March
After the International Court of Justice ruled that Morocco had historical ties with the Sahara but not sovereignty over it, Hassan II called on the people to march peacefully. On 6 November 1975 some 350,000 unarmed Moroccans carrying Qurans and flags crossed the border of Spanish Sahara near Tarfaya. Under the Madrid Accords Spain handed over administration of the territory to Morocco and Mauritania, and war began with the Polisario Front.
The dispute over the status of Western Sahara remains Morocco's central foreign policy issue.
Tarfayaon the map →
- 1999–2004
Mohammed VI and Reform
In July 1999 Mohammed VI ascended the throne. He set up the Equity and Reconciliation Commission to investigate the crimes of the "Years of Lead", and in 2004 approved a new family code, the Moudawana: the marriage age was raised to 18, polygamy was restricted and women gained the right to divorce. Modernisation followed: the Tanger Med port (2007) and the Al Boraq high-speed railway (2018).
Rabaton the map →
- 2011
The February 20 Movement
On the wave of the Arab Spring, on 20 February 2011, demonstrations for democracy and against corruption took place in dozens of cities. The king responded with reform: under the constitution approved by referendum on 1 July 2011, the prime minister is appointed from the party that wins the elections, and Amazigh (Berber) became the second official language. The November elections were won by the moderate Islamist Justice and Development Party.
Casablancaon the map →
- December 2020
Recognition and Normalisation
On 10 December 2020 the United States recognised Moroccan sovereignty over Western Sahara, and Morocco restored relations with Israel under the Abraham Accords. Later Spain (2022) and France (2024) endorsed Morocco's autonomy plan. Algeria, which supports the Polisario Front, broke off diplomatic relations with Morocco in 2021.
Rabaton the map →
- 8 September 2023
The Atlas Earthquake
Late in the evening of 8 September 2023, an earthquake of magnitude 6.8 struck Al Haouz province in the High Atlas, the strongest in the country in a century. Almost 3,000 people died, thousands of mountain villages and the medieval Tinmel mosque were destroyed, and the medina of Marrakesh was damaged. A year earlier, Morocco's national team had become the first African side to reach the semi-finals of the FIFA World Cup.
Al Haouz (High Atlas)on the map →
Rulers 133 rulers and heads of state
| Years | Name | Title | State |
|---|---|---|---|
| c. 110 BC–80 BC | Bocchus I | King | Mauretania |
| c. 49 BC–38 BC | Bogud | King (western Mauretania) | Mauretania |
| c. 49 BC–33 BC | Bocchus II | King | Mauretania |
| 25 BC–23 | Juba II | King | Mauretania |
| 23–40 | Ptolemy of Mauretania | King | Mauretania |
| c. 710–749 | Salih ibn Mansur | Emir | Emirate of Nekor |
| 788–791 | Idris I | Imam | Idrisid dynasty |
| 791–828 | Idris II | Imam | Idrisid dynasty |
| 828–836 | Muhammad ibn Idris | Imam | Idrisid dynasty |
| 836–849 | Ali I ibn Muhammad | Imam | Idrisid dynasty |
| 849–863 | Yahya I ibn Muhammad | Imam | Idrisid dynasty |
| c. 987–1001 | Ziri ibn Atiyya | Emir | Maghrawa (Fez) |
| 1056–1087 | Abu Bakr ibn Umar | Emir | Almoravid dynasty |
| 1061–1106 | Yusuf ibn Tashfin | Emir | Almoravid dynasty |
| 1106–1143 | Ali ibn Yusuf | Emir | Almoravid dynasty |
| 1121–1130 | Ibn Tumart | Mahdi, founder of the movement | Almohad Caliphate |
| 1130–1163 | Abd al-Mu'min | Caliph | Almohad Caliphate |
| 1143–1145 | Tashfin ibn Ali | Emir | Almoravid dynasty |
| 1145–1147 | Ishaq ibn Ali | Emir | Almoravid dynasty |
| 1163–1184 | Abu Yaqub Yusuf I | Caliph | Almohad Caliphate |
| 1184–1199 | Abu Yusuf Yaqub al-Mansur | Caliph | Almohad Caliphate |
| 1199–1213 | Muhammad al-Nasir | Caliph | Almohad Caliphate |
| 1213–1224 | Yusuf II al-Mustansir | Caliph | Almohad Caliphate |
| 1224–1227 | Abdallah al-Adil | Caliph | Almohad Caliphate |
| 1229–1232 | Idris I al-Ma'mun | Caliph | Almohad Caliphate |
| 1232–1242 | Abd al-Wahid II al-Rashid | Caliph | Almohad Caliphate |
| 1242–1248 | Ali al-Said | Caliph | Almohad Caliphate |
| 1244–1258 | Abu Yahya ibn Abd al-Haqq | Emir | Marinid Sultanate |
| 1248–1266 | Umar al-Murtada | Caliph | Almohad Caliphate |
| 1258–1286 | Abu Yusuf Yaqub | Sultan | Marinid Sultanate |
| 1266–1269 | Idris II al-Wathiq (Abu Dabbus) | Caliph | Almohad Caliphate |
| 1286–1307 | Abu Yaqub Yusuf an-Nasr | Sultan | Marinid Sultanate |
| 1307–1308 | Abu Thabit Amir | Sultan | Marinid Sultanate |
| 1308–1310 | Abu al-Rabi Sulayman | Sultan | Marinid Sultanate |
| 1310–1331 | Abu Said Uthman II | Sultan | Marinid Sultanate |
| 1331–1348 | Abu al-Hasan Ali | Sultan | Marinid Sultanate |
| 1348–1358 | Abu Inan Faris | Sultan | Marinid Sultanate |
| 1359–1361 | Abu Salim Ibrahim | Sultan | Marinid Sultanate |
| 1366–1372 | Abu Faris Abd al-Aziz I | Sultan | Marinid Sultanate |
| 1374–1393 | Abu al-Abbas Ahmad | Sultan (with a break 1384–1387) | Marinid Sultanate |
| 1398–1420 | Abu Said Uthman III | Sultan | Marinid Sultanate |
| 1420–1465 | Abd al-Haqq II | Sultan | Marinid Sultanate |
| 1472–1504 | Muhammad al-Shaykh | Sultan | Wattasid dynasty |
| 1504–1526 | Muhammad al-Burtuqali | Sultan | Wattasid dynasty |
| 1510–1517 | Muhammad al-Qa'im | Leader in the Sous | Saadi dynasty |
| 1517–1544 | Ahmad al-Araj | Sultan | Saadi dynasty |
| 1526–1549 | Ahmad al-Wattasi | Sultan | Wattasid dynasty |
| 1544–1557 | Mohammed al-Shaykh | Sultan | Saadi dynasty |
| 1557–1574 | Abdallah al-Ghalib | Sultan | Saadi dynasty |
| 1574–1576 | Abu Abdallah Mohammed II al-Mutawakkil | Sultan | Saadi dynasty |
| 1576–1578 | Abd al-Malik I | Sultan | Saadi dynasty |
| 1578–1603 | Ahmad al-Mansur | Sultan | Saadi dynasty |
| 1603–1627 | Zidan Abu Maali | Sultan (contested by his brothers) | Saadi dynasty |
| 1627–1631 | Abd al-Malik II | Sultan | Saadi dynasty |
| 1631–1636 | al-Walid ibn Zidan | Sultan | Saadi dynasty |
| 1636–1655 | Mohammed al-Shaykh al-Saghir | Sultan | Saadi dynasty |
| 1655–1659 | Ahmad al-Abbas | Sultan | Saadi dynasty |
| 1666–1672 | Moulay al-Rashid | Sultan | Alaouite dynasty |
| 1672–1727 | Moulay Ismail | Sultan | Alaouite dynasty |
| 1727–1729 | Ahmad II adh-Dhahabi | Sultan | Alaouite dynasty |
| 1729–1757 | Moulay Abdallah | Sultan (intermittently) | Alaouite dynasty |
| 1734–1736 | Zayn al-Abidin Ali II al-A'raj | Sultan | Alaouite dynasty |
| 1736–1738 | Muhammad II ibn al-Arabiyya | Sultan | Alaouite dynasty |
| 1738–1740 | al-Mustadi | Sultan | Alaouite dynasty |
| 1757–1790 | Mohammed III | Sultan | Alaouite dynasty |
| 1790–1792 | Moulay Yazid | Sultan | Alaouite dynasty |
| 1790–1795 | Hisham | Sultan (in Marrakesh) | Alaouite dynasty |
| 1792–1822 | Moulay Slimane | Sultan | Alaouite dynasty |
| 1822–1859 | Abd al-Rahman | Sultan | Alaouite dynasty |
| 1859–1873 | Mohammed IV | Sultan | Alaouite dynasty |
| 1873–1894 | Hassan I | Sultan | Alaouite dynasty |
| 1894–1908 | Abdelaziz | Sultan | Alaouite dynasty |
| 1908–1912 | Abd al-Hafid | Sultan | Alaouite dynasty |
| 1912–1925 | Hubert Lyautey | Resident-General | French protectorate of Morocco |
| 1912–1927 | Moulay Yusef | Sultan | Alaouite dynasty (protectorate) |
| 1913 | Felipe Alfau y Mendoza | High Commissioner | Spanish protectorate in Morocco |
| 1913–1915 | José Marina Vega | High Commissioner | Spanish protectorate in Morocco |
| 1915–1918 | Francisco Gómez Jordana | High Commissioner | Spanish protectorate in Morocco |
| 1919–1922 | Dámaso Berenguer | High Commissioner | Spanish protectorate in Morocco |
| 1921–1926 | Abd el-Krim | President | Republic of the Rif |
| 1922–1923 | Ricardo Burguete | High Commissioner | Spanish protectorate in Morocco |
| 1923 | Luis Silvela | High Commissioner | Spanish protectorate in Morocco |
| 1923–1924 | Luis Aizpuru | High Commissioner | Spanish protectorate in Morocco |
| 1924–1925 | Miguel Primo de Rivera | High Commissioner | Spanish protectorate in Morocco |
| 1925–1928 | José Sanjurjo | High Commissioner | Spanish protectorate in Morocco |
| 1925–1929 | Théodore Steeg | Resident-General | French protectorate of Morocco |
| 1927–1961 | Mohammed V | Sultan, King from 1957 (in exile 1953–1955) | Alaouite dynasty |
| 1928–1931 | Francisco Gómez Jordana | High Commissioner | Spanish protectorate in Morocco |
| 1929–1933 | Lucien Saint | Resident-General | French protectorate of Morocco |
| 1931–1933 | Luciano López Ferrer | High Commissioner | Spanish protectorate in Morocco |
| 1933–1934 | Juan Moles | High Commissioner | Spanish protectorate in Morocco |
| 1933–1936 | Henri Ponsot | Resident-General | French protectorate of Morocco |
| 1934–1935 | Manuel Rico Avello | High Commissioner | Spanish protectorate in Morocco |
| 1936 | Marcel Peyrouton | Resident-General | French protectorate of Morocco |
| 1936 | Francisco Franco | High Commissioner | Spanish protectorate in Morocco |
| 1936–1937 | Luis Orgaz | High Commissioner | Spanish protectorate in Morocco |
| 1936–1943 | Charles Noguès | Resident-General | French protectorate of Morocco |
| 1937–1939 | Juan Beigbeder | High Commissioner | Spanish protectorate in Morocco |
| 1940–1941 | Carlos Asensio Cabanillas | High Commissioner | Spanish protectorate in Morocco |
| 1941–1945 | Luis Orgaz | High Commissioner | Spanish protectorate in Morocco |
| 1943–1946 | Gabriel Puaux | Resident-General | French protectorate of Morocco |
| 1945–1951 | José Enrique Varela | High Commissioner | Spanish protectorate in Morocco |
| 1946–1947 | Eirik Labonne | Resident-General | French protectorate of Morocco |
| 1947–1951 | Alphonse Juin | Resident-General | French protectorate of Morocco |
| 1951–1954 | Augustin Guillaume | Resident-General | French protectorate of Morocco |
| 1951–1956 | Rafael García Valiño | High Commissioner | Spanish protectorate in Morocco |
| 1953–1955 | Mohammed Ben Aarafa | Sultan (French-installed) | Alaouite dynasty (protectorate) |
| 1954–1955 | Francis Lacoste | Resident-General | French protectorate of Morocco |
| 1955 | Gilbert Grandval | Resident-General | French protectorate of Morocco |
| 1955 | Pierre Boyer de Latour | Resident-General | French protectorate of Morocco |
| 1955–1956 | André Dubois | Resident-General | French protectorate of Morocco |
| 1955–1958 | M'barek Bekkai | Prime Minister | Kingdom of Morocco |
| 1958 | Ahmed Balafrej | Prime Minister | Kingdom of Morocco |
| 1958–1960 | Abdallah Ibrahim | Prime Minister | Kingdom of Morocco |
| 1961–1999 | Hassan II | King | Kingdom of Morocco |
| 1963–1965 | Ahmed Bahnini | Prime Minister | Kingdom of Morocco |
| 1967–1969 | Mohamed Benhima | Prime Minister | Kingdom of Morocco |
| 1969–1971 | Ahmed Laraki | Prime Minister | Kingdom of Morocco |
| 1971–1972 | Mohamed Karim Lamrani | Prime Minister | Kingdom of Morocco |
| 1972–1979 | Ahmed Osman | Prime Minister | Kingdom of Morocco |
| 1979–1983 | Maati Bouabid | Prime Minister | Kingdom of Morocco |
| 1983–1986 | Mohamed Karim Lamrani | Prime Minister | Kingdom of Morocco |
| 1986–1992 | Azzedine Laraki | Prime Minister | Kingdom of Morocco |
| 1992–1994 | Mohamed Karim Lamrani | Prime Minister | Kingdom of Morocco |
| 1994–1998 | Abdellatif Filali | Prime Minister | Kingdom of Morocco |
| 1998–2002 | Abderrahmane Youssoufi | Prime Minister | Kingdom of Morocco |
| 1999–present | Mohammed VI | King | Kingdom of Morocco |
| 2002–2007 | Driss Jettou | Prime Minister | Kingdom of Morocco |
| 2007–2011 | Abbas El Fassi | Prime Minister | Kingdom of Morocco |
| 2011–2017 | Abdelilah Benkirane | Prime Minister | Kingdom of Morocco |
| 2017–2021 | Saadeddine El Othmani | Prime Minister | Kingdom of Morocco |
| 2021–2026 | Aziz Akhannouch | Prime Minister | Kingdom of Morocco |
| 2026–present | Fatima Ezzahra El Mansouri | Prime Minister | Kingdom of Morocco |