Discovering...
Discovering...

How Umayyad armies swept across North Africa between 647 and 711 CE — and what the Islamisation of the Maghreb actually looked like on the ground.
Daniel Okafor· Adventure & Outdoors Editor
Trekking guide and outdoor writer who has summited Toubkal more times than he can count and surfed every break from Taghazout to Imsouane. He covers hiking, surfing, climbing and adrenaline activities. Agadir · 13+ years covering Morocco
Published 22 July 2025 Last updated 20 May 2026
Islam arrived in Morocco not as a sudden thunderclap but as a slow, contested, 60-year military and cultural advance. The first Arab forces reached the eastern Maghreb in 647 CE; the territory of present-day Morocco was not consolidated under Umayyad control until around 711 CE — the same year Tariq ibn Ziyad crossed the strait into Iberia. What happened in between is one of the most dramatic chapters in North African history, and it shaped everything from Morocco’s language and architecture to its centuries-long role as a bridge between Africa and Europe.
Understanding this period changes how you see Morocco as a traveller. The winding lanes of Fes’s medina, the geometric tilework on mosque walls, the call to prayer echoing over the rooftops — all of it traces back to a transformation that began in the 7th century. It also explains why Morocco’s Amazigh identity never fully dissolved into Arab culture: resistance was real, accommodation was negotiated, and the result was something distinctively Moroccan rather than simply a copy of the Arabian heartland.
The Arab advance into the Maghreb was not a single campaign — it unfolded in stuttering waves, repeatedly interrupted by Amazigh resistance. Here are the pivotal moments.
647 CE
Arab forces under Abdullah ibn Abi Sarh push west from Egypt, defeating the Byzantine governor Gregory at Sbeitla (in modern Tunisia). This is not yet a conquest of Morocco itself, but it signals the direction of travel.
670 CE
The Umayyad general establishes Kairouan in modern Tunisia as a garrison city and base for westward expansion. It becomes one of Islam’s earliest great cities outside Arabia and a staging point for reaching the Maghreb al-Aqsa — the "Far West."
681–683 CE
Uqba ibn Nafi leads a force through what is now Algeria and into the territory of present-day Morocco, reportedly riding his horse into the Atlantic at Oued Massa south of Agadir and declaring there was no more land to conquer. He is ambushed and killed on the return journey near Biskra by the Amazigh resistance leader Kusayla.
698–703 CE
The Amazigh queen known as Al-Kahina (the Prophetess) unites Berber tribes in the Aurès mountains and inflicts a major defeat on the Umayyad army around 698 CE. Arab forces withdraw temporarily. She is eventually defeated and killed around 703 CE — she remains one of North Africa’s most celebrated historical figures.
705–711 CE
Under Musa ibn Nusayr and his Amazigh lieutenant Tariq ibn Ziyad, Arab and Berber forces complete the incorporation of Morocco into the Umayyad Caliphate. In 711 CE, Tariq leads the crossing into Iberia — Gibraltar takes its name from Jabal al-Tariq, "Mountain of Tariq."
Standard histories of the "Arab conquest" can make it sound like a clean sweep. It was not. The Amazigh (Berber) populations of the Maghreb resisted for decades, and their resistance produced two of North Africa’s most compelling historical figures.
Kusayla was a leader of the Awraba Berber confederation, possibly a Christian or pagan, who allied briefly with the Arabs before turning against them. In 683 CE, his forces ambushed and killed Uqba ibn Nafi near Biskra, halting the Arab advance for nearly a decade.
Al-Kahina — whose name means "the Prophetess" in Arabic — was an Amazigh queen of the Aurès mountains. Around 698 CE, her army inflicted a crushing defeat on the Umayyad commander Hassan ibn al-Nu’man, forcing him to retreat to Tripolitania. Medieval Arab chroniclers describe her scorched-earth strategy of destroying crops and settlements to deny the Arabs a reason to stay — a policy that ultimately cost her the support of settled Berber communities. She was defeated and killed around 703 CE. Today she is claimed as a national hero by both Amazigh cultural movements and the Algerian state.
The turning point came when large numbers of Amazigh tribes converted to Islam and joined the Arab armies — not necessarily out of religious conviction, but because military success brought land, status, and spoils. It was a converted Amazigh general, Tariq ibn Ziyad, who led the 711 CE crossing into Spain. The Umayyad conquest of Morocco ended up producing the commanders who conquered Iberia.

Volubilis — Morocco’s best-preserved Roman city, inhabited during the conquest era and slowly abandoned thereafter
The conversion of Morocco to Islam was not simply a change of religion — it reshaped language, architecture, political legitimacy, and the country’s place in the wider world.
Classical Arabic became the language of religion, law, and later literature — though Tamazight (Berber) remained the mother tongue of most of the population for centuries and is today a co-official language of Morocco.
Idris I, a descendant of the Prophet who fled Abbasid persecution, established himself in Morocco in 788 CE and his son Idris II founded Fes around 808 CE. The city became the first great centre of Islamic scholarship in the Maghreb — its Qarawiyyin mosque-university, founded in 859 CE, is often cited as the world’s oldest continuously operating university.
Conversion was not overnight. Many Amazigh tribes adopted Islam but adapted it through their own traditions, producing a distinctively Moroccan religious culture — maraboutism, local saint veneration, and Sufi brotherhoods (tariqas) that persist to this day.
The Umayyad conquest of Morocco was the prerequisite for the Muslim expansion into Iberia. For nearly 800 years, the Strait of Gibraltar was a bridge rather than a barrier, and Morocco and al-Andalus (Islamic Spain/Portugal) shared rulers, scholars, and architectural styles.
| Figure | Side | Role | Fate |
|---|---|---|---|
| Uqba ibn Nafi | Umayyad | Founded Kairouan; led march to the Atlantic | Killed by Kusayla near Biskra, 683 CE |
| Kusayla | Amazigh resistance | United Berber tribes; defeated and killed Uqba | Killed in battle, c. 688 CE |
| Al-Kahina | Amazigh resistance | Queen of Aurès; defeated Arab army c. 698 CE | Defeated and killed, c. 703 CE |
| Hassan ibn al-Nu’man | Umayyad | Resumed conquest after Al-Kahina’s defeat | Completed consolidation of the Maghreb |
| Musa ibn Nusayr | Umayyad | Governor who completed Moroccan conquest | Later fell out of favour with the Caliph |
| Tariq ibn Ziyad | Umayyad (Amazigh convert) | Led 711 CE crossing to Iberia | Gave his name to Gibraltar (Jabal al-Tariq) |
The conquest era left few explicit monuments in Morocco — it was the dynasties that followed, particularly the Idrisids and later the Almoravids, who built the mosques, medersas, and city walls you visit today. But you can trace the period through several stops.
Founded in 859 CE, a direct product of the post-conquest Islamic scholarship boom. The medina around it preserves the street pattern of a 9th-century Islamic city. Entry to non-Muslims is restricted but the views from adjacent lanes are striking.
Morocco’s best-preserved Roman city was still occupied when Arab forces arrived and was gradually abandoned thereafter. Walking its mosaics and triumphal arch gives a visceral sense of what the conquest displaced. It is a 30-minute drive from Meknes and pairs well with a visit to Moulay Idriss Zerhoun, the hilltop town built by the Idrisids above the ruins.
This small hill town contains the tomb of Idris I, the founder of Morocco’s first Islamic dynasty. It is the most sacred site in Morocco for many Muslims and gives context to how the post-conquest Idrisid state legitimised itself through descent from the Prophet.
A private guided tour is the most efficient way to layer this history onto a visit. A good guide connects the dots between the Roman city at Volubilis, the Idrisid shrine at Moulay Idriss, and the Qarawiyyin in Fes in a single day — a sequence that takes you from the pre-Islamic world through the conquest to its most enduring intellectual legacy.
Best base
Fes or Meknes
Key sites
Volubilis · Moulay Idriss · Fes Qarawiyyin
Suggested time
1 full day from Meknes or Fes
The first Arab military incursions reached the eastern Maghreb in 647 CE, but the territory of present-day Morocco was not fully incorporated into the Umayyad Caliphate until around 705–711 CE. So the conquest unfolded over roughly 60 years. Popular conversion of the Amazigh population continued well into the 8th and 9th centuries — Islam did not transform Morocco’s culture and architecture overnight, but was a generational process.
Uqba ibn Nafi (c. 622–683 CE) was the Umayyad general most associated with the westward push into the Maghreb. He founded the city of Kairouan in 670 CE, which became the spiritual and logistical base for the conquest. Around 681–683 CE he led a dramatic march through northern Morocco all the way to the Atlantic coast. His death at the hands of Amazigh resistance fighters near Biskra made him a martyr in Islamic tradition, and his mosque in Kairouan remains one of the oldest in the world.
Resistance was fierce and prolonged. The most celebrated figures are Kusayla, an Amazigh Christian-aligned leader who ambushed and killed Uqba ibn Nafi in 683 CE, and Al-Kahina, a queen of the Aurès Berbers who defeated an Arab army around 698 CE and held out for several years before being defeated around 703 CE. Far from a swift conquest, the Arab advance into the Maghreb was interrupted by a decade-long Amazigh counter-offensive. Many Berber tribes eventually joined the Arab armies — it was a Berber general, Tariq ibn Ziyad, who crossed into Spain in 711 CE.
Military control was established by around 711 CE, but genuine mass conversion took much longer. Most historians estimate that the majority of Morocco’s Amazigh population had converted to Islam by the mid-9th century — roughly 150–200 years after the first Arab forces arrived. The Idrisid dynasty, founded in 788 CE, played a key role by blending Arab Islamic legitimacy with local Berber tribal structures, making Islam the political and cultural framework of the emerging Moroccan state.
The Amazigh people of Morocco held a diverse mix of beliefs before Islam, including indigenous animist traditions, Roman-era polytheism, Christianity (particularly in northern and coastal areas influenced by Rome), and Judaism (several Amazigh tribes had converted to Judaism centuries earlier). These were not fully erased by Islam — elements of pre-Islamic practice were absorbed into Moroccan folk Islam, including the veneration of local saints (walis) at shrines called zawiyas, a tradition that continues today across rural Morocco.
Morocco was incorporated as part of the Umayyad province of Ifriqiya, governed initially from Kairouan. Control was maintained through a combination of garrison cities, tribal alliances, and the integration of converted Amazigh warriors into the Arab military structure. In practice, the Umayyads never fully controlled the deep south and Atlas regions. When the Umayyad Caliphate collapsed in 750 CE (replaced by the Abbasids), Morocco’s distance from Damascus allowed it to develop its own Islamic dynasties — beginning with the Idrisids in 788 CE — effectively becoming an independent Muslim kingdom.
The clearest physical legacies are the early Islamic cities. Fes, founded by the Idrisids around 808 CE just a century after the conquest, is the best-preserved medieval Islamic city in the world and is very much a product of this period. The Qarawiyyin mosque in Fes dates to 859 CE. Further east, the Roman city of Volubilis was occupied and later abandoned during this transition period — you can walk the ruins today on a day trip from Fes or Meknes. A private guided tour contextualises these layers of history far better than a self-guided visit.
Plan it with a local expert
Crafting extraordinary journeys through Morocco's timeless landscapes. 100% private journeys, handcrafted around you.
from $2,054Essential Morocco: Imperial Cities Circuit
from $5,978Sahara to Sea: Morocco Complete