
Medieval Muslim Algeria was a period of
Muslim
Muslims () are people who adhere to Islam, a Monotheism, monotheistic religion belonging to the Abrahamic religions, Abrahamic tradition. They consider the Quran, the foundational religious text of Islam, to be the verbatim word of the God ...
dominance in
Algeria
Algeria, officially the People's Democratic Republic of Algeria, is a country in the Maghreb region of North Africa. It is bordered to Algeria–Tunisia border, the northeast by Tunisia; to Algeria–Libya border, the east by Libya; to Alger ...
during the
Middle Ages
In the history of Europe, the Middle Ages or medieval period lasted approximately from the 5th to the late 15th centuries, similarly to the post-classical period of global history. It began with the fall of the Western Roman Empire and ...
, spanning the millennium from the 7th century to the 17th century. The new faith, in its various forms, would penetrate nearly all segments of society, bringing with it armies, learned men, and fervent
mystics
A mystic is a person who practices mysticism, or a reference to a mystery, mystic craft, first hand-experience or the occult.
Mystic may also refer to:
Arts, entertainment Books and comics
* Ms. Mystic, comic book superheroine
* ''Mystic'' (c ...
; in large part, it would replace tribal practices and loyalties with new social norms and political idioms.
The first
Arab military expeditions into the Maghreb, between 642 and 669, resulted in the
spread of Islam
The spread of Islam spans almost 1,400 years. The early Muslim conquests that occurred following the death of Muhammad in 632 CE led to the creation of the caliphates, expanding over a vast geographical area; conversion to Islam was boosted ...
and
migration of Arabs to the Maghreb. These early forays from a base in
Egypt
Egypt ( , ), officially the Arab Republic of Egypt, is a country spanning the Northeast Africa, northeast corner of Africa and Western Asia, southwest corner of Asia via the Sinai Peninsula. It is bordered by the Mediterranean Sea to northe ...
occurred under local initiative rather than under orders from the central
caliphate
A caliphate ( ) is an institution or public office under the leadership of an Islamic steward with Khalifa, the title of caliph (; , ), a person considered a political–religious successor to the Islamic prophet Muhammad and a leader of ...
. When the seat of the caliphate moved from
Medina
Medina, officially al-Madinah al-Munawwarah (, ), also known as Taybah () and known in pre-Islamic times as Yathrib (), is the capital of Medina Province (Saudi Arabia), Medina Province in the Hejaz region of western Kingdom of Saudi Arabia, ...
to
Damascus
Damascus ( , ; ) is the capital and List of largest cities in the Levant region by population, largest city of Syria. It is the oldest capital in the world and, according to some, the fourth Holiest sites in Islam, holiest city in Islam. Kno ...
, the
Umayyads (a Muslim dynasty ruling from 661 to 750) recognized that the strategic necessity of dominating the Mediterranean dictated a concerted military effort on the North African front. In 670, therefore, an Arab army under
Uqba ibn Nafi
ʿUqba ibn Nāfiʿ ibn ʿAbd al-Qays al-Fihrī al-Qurashī (), also simply known as Uqba ibn Nafi (622 – 683), was an Arab general serving the Rashidun Caliphate since the reign of Umar and later the Umayyad Caliphate during the reigns of Mu'awi ...
established the town of
Al-Qayrawan about 160 kilometers south of present-day
Tunis
Tunis (, ') is the capital city, capital and largest city of Tunisia. The greater metropolitan area of Tunis, often referred to as "Grand Tunis", has about 2,700,000 inhabitants. , it is the third-largest city in the Maghreb region (after Casabl ...
and used it as a base for further operations.
Abu al Muhajir Dinar
Abu al-Muhajir Dinar, Uqba's successor, pushed westward into Algeria and eventually worked out a modus vivendi with
Kusaila
Kusaila ibn Malzam (), also known as Aksel, was a 7th-century Berber Christian ruler of the kingdom of Altava and leader of the Awraba tribe, a Christianised sedentary Berber tribe of the Aures and possibly Christian king of the Sanhaja. Under ...
, the ruler of an extensive confederation of Christian Berbers. Kusaila, who had been based in Tilimsan (Tlemcen), became a Muslim and moved his headquarters to Takirwan, near Al Qayrawan.
This harmony was short-lived, however. Arab and Berber forces controlled the region in turn until 697. By 711, Umayyad forces helped by Berber converts to Islam had conquered all of North Africa. Governors appointed by the Umayyad caliphs ruled from Al Qayrawan, capital of the new wilaya (province) of Ifriqiya, which covered Tripolitania (the western part of present-day Libya), Tunisia, and eastern Algeria.
Paradoxically, the spread of Islam among the Berbers did not guarantee their support for the Arab-dominated caliphate. The ruling Arabs alienated the Berbers by taxing them heavily; treating converts as second-class Muslims; and, at worst, by enslaving them. As a result, widespread opposition took the form of
open revolt in 739–40 under the banner of
Kharijite Islam. The Kharijites objected to Ali, the fourth caliph, making peace with the Umayyads in 657 and left Ali's camp (khariji means "those who leave"). The Kharijites had been fighting Umayyad rule in the East, and many Berbers were attracted by the sect's egalitarian precepts. For example, according to Kharijism, any suitable Muslim candidate could be elected caliph without regard to race, station, or descent from Muhammad.
After the revolt, Kharijites established several theocratic tribal kingdoms, most of which had short and troubled histories. Others, however, like Sijilmasa and Tilimsan, which straddled the principal trade routes, proved more viable and prospered. In 750 the Abbasids, who succeeded the Umayyads as Muslim rulers, moved the caliphate to Baghdad and reestablished caliphal authority in Ifriqiya, appointing
Ibrahim ibn al Aghlab as governor in Al Qayrawan. Although nominally serving at the caliph's pleasure, Al Aghlab and his successors,
the Aghlabids, ruled independently until 909, presiding over a court that became a center for learning and culture.
Rustamids
Rustamids or Banou Rostom, an Ibadi Islamic berber state, appeared in 776 AD, founded and led initially by Abdurrahman ibn Rostom. Its capital was
Tahert
Tiaret () or Tahert () is a major city in northwestern Algeria that gives its name to the wider farming region of Tiaret Province. Both the town and region lie south-west of the capital of Algiers in the western region of the Hautes Plaines, i ...
in the northeast of what is now known as
Algeria
Algeria, officially the People's Democratic Republic of Algeria, is a country in the Maghreb region of North Africa. It is bordered to Algeria–Tunisia border, the northeast by Tunisia; to Algeria–Libya border, the east by Libya; to Alger ...
. The Rustamid state spread all over the north African coast from
Tlemcen
Tlemcen (; ) is the second-largest city in northwestern Algeria after Oran and is the capital of Tlemcen Province. The city has developed leather, carpet, and textile industries, which it exports through the port of Rachgoun. It had a population of ...
to the area now known as
Sert in northern
Libya
Libya, officially the State of Libya, is a country in the Maghreb region of North Africa. It borders the Mediterranean Sea to the north, Egypt to Egypt–Libya border, the east, Sudan to Libya–Sudan border, the southeast, Chad to Chad–L ...
, though it is slightly hard to get precise frontiers of this state. During the Rostomid ruling, its capital was a cultural and a scientific metropolis of the
Great Maghreb, attracting many scientists, such as Ibn Khaldoun, where he wrote his popular book called "
Al Mukadima", which was likely to be known as the first book about sociology. The fall of the state was after the defeat against the Fatimids and putting out the last leader, Yakdan Ibn Mohamed, in 909 AD.
Banu Ifran
In
Algeria
Algeria, officially the People's Democratic Republic of Algeria, is a country in the Maghreb region of North Africa. It is bordered to Algeria–Tunisia border, the northeast by Tunisia; to Algeria–Libya border, the east by Libya; to Alger ...
,
Tlemcen
Tlemcen (; ) is the second-largest city in northwestern Algeria after Oran and is the capital of Tlemcen Province. The city has developed leather, carpet, and textile industries, which it exports through the port of Rachgoun. It had a population of ...
was the capital of the Kingdom of Banu Ifran in the time period before Islam to 1068. The
Banu Ifran
The Banu Ifran (, ''Banu Yafran'') or Ifranids, were a Zenata Berber people, Berber tribe prominent in the history of pre-Islamic and early Islamic North Africa. In the 8th century, they established a Emirate of Tlemcen, kingdom in the central Ma ...
waged uprisings against the foreign occupiers: the
Romans, the
Vandals
The Vandals were a Germanic people who were first reported in the written records as inhabitants of what is now Poland, during the period of the Roman Empire. Much later, in the fifth century, a group of Vandals led by kings established Vand ...
, and the
Byzantines. They pledged to the side of the
Kahina, against the
Umayyad
The Umayyad Caliphate or Umayyad Empire (, ; ) was the second caliphate established after the death of the Islamic prophet Muhammad and was ruled by the Umayyad dynasty. Uthman ibn Affan, the third of the Rashidun caliphs, was also a membe ...
in the 7th century. In the 8th century, they mobilize around the dogma of
sufri
The Sufris ( ''aṣ-Ṣufriyya'') were Khariji Muslims in the seventh and eighth centuries. They established the Midrarid state at Sijilmassa, now in Morocco.
In Tlemcen, Algeria, the Banu Ifran were Sufri Berbers who opposed rule by the Uma ...
to revolt against the powers of the Umayyad and
Abbasids
The Abbasid Caliphate or Abbasid Empire (; ) was the third caliphate to succeed the Islamic prophet Muhammad. It was founded by a dynasty descended from Muhammad's uncle, Abbas ibn Abd al-Muttalib (566–653 CE), from whom the dynasty takes i ...
. In the 10th century, they created a dynasty facing the
Fatimids
The Fatimid Caliphate (; ), also known as the Fatimid Empire, was a caliphate extant from the tenth to the twelfth centuries CE under the rule of the Fatimid dynasty, Fatimids, an Isma'ili Shi'a dynasty. Spanning a large area of North Africa ...
, the
Zirid, the Umayyad, the
Hammadid, and the Maghraoua. The Banu Ifran was defeated by the
Almoravids
The Almoravid dynasty () was a Berber Muslim dynasty centered in the territory of present-day Morocco. It established an empire that stretched over the western Maghreb and Al-Andalus, starting in the 1050s and lasting until its fall to the Almo ...
and the coalition of
Banu Hilal
The Banu Hilal () was a confederation of Arab tribes from the Najd region of the central Arabian Peninsula that emigrated to the Maghreb region of North Africa in the 11th century. They ruled the Najd, and campaigned in the borderlands between I ...
and
Banu Sulaym
The Banu Sulaym () is an Arab tribe that dominated part of the Hejaz in the pre-Islamic era. They maintained close ties with the Quraysh of Mecca and the inhabitants of Medina, and fought in a number of battles against the Islamic prophet Muha ...
- Hammadid, towards the end of 11th century.
The Ifrenides dynasty was recognized as the only dynasty that has defended the Africans People in the Maghreb.
Zirids
The
Zirid Dynasty
The Zirid dynasty (), Banu Ziri (), was a Sanhaja Berber dynasty from what is now Algeria which ruled the central Maghreb from 972 to 1014 and Ifriqiya (eastern Maghreb) from 972 to 1148.
Descendants of Ziri ibn Manad, a military leader of t ...
, which ruled over parts of North Africa from the 10th to the 12th century, was one of the most significant Muslim dynasties in medieval Algeria. Founded by the Berber general
Ziri ibn Manad
Ziri ibn Manad or Ziri son of Mennad (died in 971) was the founder of the Zirid dynasty in the Maghreb.
Ziri ibn Mennad was a chief of the Takalata branch of the Sanhajah confederation, to which the Kutama Berbers belonged located in the Central ...
, the Zirids established their capital in the city of
Ashir, located in modern-day Algeria.
The dynasty's early years were marked by political turmoil and conflict with other Muslim powers, but the Zirids eventually emerged as a dominant force in the region, with their influence extending as far as
Sicily
Sicily (Italian language, Italian and ), officially the Sicilian Region (), is an island in the central Mediterranean Sea, south of the Italian Peninsula in continental Europe and is one of the 20 regions of Italy, regions of Italy. With 4. ...
. The Zirid rulers were known for their patronage of the arts and sciences, and their court was a center of learning and culture. However, the dynasty's decline in the 12th century paved the way for the rise of other powers in the region, ultimately leading to the fragmentation of North Africa. Despite their relatively short reign, the legacy of the Zirids continues to shape the cultural and political landscape of Algeria and North Africa to this day.
Fatimids

In the closing decades of the 9th century, missionaries of the
Ismaili
Ismailism () is a branch of Shia Islam. The Isma'ili () get their name from their acceptance of Imam Isma'il ibn Jafar as the appointed spiritual successor ( imām) to Ja'far al-Sadiq, wherein they differ from the Twelver Shia, who accept ...
sect of
Shia
Shia Islam is the second-largest branch of Islam. It holds that Muhammad designated Ali ibn Abi Talib () as both his political successor (caliph) and as the spiritual leader of the Muslim community (imam). However, his right is understood ...
Islam converted the
Kutama
The Kutama (Berber: ''Ikutamen''; ) were a Berber tribe in northern Algeria classified among the Berber confederation of the Bavares. The Kutama are attested much earlier, in the form ''Koidamousii'' by the Greek geographer Ptolemy.
The Kutama p ...
Berbers
Berbers, or the Berber peoples, also known as Amazigh or Imazighen, are a diverse grouping of distinct ethnic groups indigenous to North Africa who predate the arrival of Arab migrations to the Maghreb, Arabs in the Maghreb. Their main connec ...
of what was later known as the
Petite Kabylie region and led them in battle against the
Sunni
Sunni Islam is the largest branch of Islam and the largest religious denomination in the world. It holds that Muhammad did not appoint any successor and that his closest companion Abu Bakr () rightfully succeeded him as the caliph of the Mu ...
rulers of
Ifriqiya
Ifriqiya ( '), also known as al-Maghrib al-Adna (), was a medieval historical region comprising today's Tunisia, eastern Algeria, and Tripolitania (roughly western Libya). It included all of what had previously been the Byzantine province of ...
. Al Qayrawan fell to them in 909. The Ismaili imam, Abdallah, declared himself caliph and established Mahdia as his capital. Abdallah initiated the
Fatimid Dynasty
The Fatimid dynasty () was an Arab dynasty that ruled the Fatimid Caliphate, between 909 and 1171 CE. Descended from Fatima and Ali, and adhering to Isma'ili Shi'ism, they held the Isma'ili imamate, and were regarded as the rightful leaders o ...
, named after Fatima, daughter of Muhammad and wife of Ali, from whom the caliph claimed descent.
The
Fatimid
The Fatimid Caliphate (; ), also known as the Fatimid Empire, was a caliphate extant from the tenth to the twelfth centuries CE under the rule of the Fatimid dynasty, Fatimids, an Isma'ili Shi'a dynasty. Spanning a large area of North Africa ...
s turned westward in 911, destroying the imamate of
Tahert
Tiaret () or Tahert () is a major city in northwestern Algeria that gives its name to the wider farming region of Tiaret Province. Both the town and region lie south-west of the capital of Algiers in the western region of the Hautes Plaines, i ...
and conquering
Sijilmasa
Sijilmasa (; also transliterated Sijilmassa, Sidjilmasa, Sidjilmassa and Sigilmassa) was a medieval Moroccan city and trade entrepôt at the northern edge of the Sahara in Morocco. The ruins of the town extend for five miles along the River Ziz ...
in
Morocco
Morocco, officially the Kingdom of Morocco, is a country in the Maghreb region of North Africa. It has coastlines on the Mediterranean Sea to the north and the Atlantic Ocean to the west, and has land borders with Algeria to Algeria–Morocc ...
.
Ibadi
Ibadism (, ) is a school of Islam concentrated in Oman established from within the Kharijites. The followers of the Ibadi sect are known as the Ibadis or, as they call themselves, The People of Truth and Integrity ().
Ibadism emerged around 6 ...
Kharijite
The Kharijites (, singular ) were an Islamic sect which emerged during the First Fitna (656–661). The first Kharijites were supporters of Ali who rebelled against his acceptance of arbitration talks to settle the conflict with his challeng ...
refugees from Tahert fled south to the oasis at
Ouargla
Ouargla (Berber: Wargrən, ) is the capital city of Ouargla Province in the Sahara Desert in southern Algeria. It has a flourishing petroleum industry and hosts one of Algeria's universities, the University of Ouargla. The commune of Ouargla had ...
beyond the
Atlas Mountains
The Atlas Mountains are a mountain range in the Maghreb in North Africa. They separate the Sahara Desert from the Mediterranean Sea and the Atlantic Ocean; the name "Atlantic" is derived from the mountain range, which stretches around through M ...
, whence in the 11th century they moved southwest to Oued
M'zab
The M'zab, or Mzab (Mozabite language, Mozabite: ''Aghlan'', ), is a natural region of the northern Sahara Desert in Ghardaïa Province, Algeria. It is located south of Algiers and has approximately 360,000 inhabitants (2005 estimate).
Geolog ...
. Maintaining their cohesion and beliefs over the centuries, Ibadi religious leaders have dominated public life in the region to this day.
For many years, the Fatimids posed a threat to Morocco, but their deepest ambition was to rule the East, the Mashriq, which included
Egypt
Egypt ( , ), officially the Arab Republic of Egypt, is a country spanning the Northeast Africa, northeast corner of Africa and Western Asia, southwest corner of Asia via the Sinai Peninsula. It is bordered by the Mediterranean Sea to northe ...
and Muslim lands beyond. By 969, they had conquered Egypt and in 972, the Fatimid ruler
Al Muizz
Abu Tamim Ma'ad al-Mu'izz li-Din Allah (; 26 September 932 – 19 December 975) was the fourth Fatimid caliph and the 14th Ismaili imam, reigning from 953 to 975. It was during his caliphate that the center of power of the Fatimid dynasty was m ...
established the new city of
Cairo
Cairo ( ; , ) is the Capital city, capital and largest city of Egypt and the Cairo Governorate, being home to more than 10 million people. It is also part of the List of urban agglomerations in Africa, largest urban agglomeration in Africa, L ...
as his capital. The Fatimids left the rule of Ifriqiya and most of Algeria to the Zirids (972–1148). This Berber dynasty, which had founded the towns of
Miliana,
Médéa
Médéa () is the capital city of Médéa Province, Algeria. It is located roughly 68 km south of Algiers. The present-day city is situated on the site of an ancient Roman military post and has a history dating back to the 10th century. The ...
, and
Algiers
Algiers is the capital city of Algeria as well as the capital of the Algiers Province; it extends over many Communes of Algeria, communes without having its own separate governing body. With 2,988,145 residents in 2008Census 14 April 2008: Offi ...
and centered significant local power in Algeria for the first time, turned over its domain west of Ifriqiya to the
Banu Hammad branch of its family. The Hammadids ruled from 1011 to 1151, during which time Bejaïa became the most important port in
North Africa
North Africa (sometimes Northern Africa) is a region encompassing the northern portion of the African continent. There is no singularly accepted scope for the region. However, it is sometimes defined as stretching from the Atlantic shores of t ...
.
This period was marked by constant conflict, political instability, and economic decline. The
Hammadids, by rejecting the Ismaili doctrine for Sunni orthodoxy and renouncing submission to the Fatimids, initiated chronic conflict with the
Zirids
The Zirid dynasty (), Banu Ziri (), was a Sanhaja Berber dynasty from what is now Algeria which ruled the central Maghreb from 972 to 1014 and Ifriqiya (eastern Maghreb) from 972 to 1148.
Descendants of Ziri ibn Manad, a military leader of th ...
. Two great Berber confederations – the
Sanhaja
The Sanhaja (, or زناگة ''Znāga''; , pl. Iẓnagen, and also Aẓnaj, pl. Iẓnajen) were once one of the largest Berbers, Berber tribal confederations, along with the Zenata, Zanata and Masmuda confederations. Many tribes in Algeria, Libya ...
and the
Zenata
The Zenata (; ) are a group of Berber tribes, historically one of the largest Berber confederations along with the Sanhaja and Masmuda. Their lifestyle was either nomadic or semi-nomadic.
Society
The 14th-century historiographer Ibn Khaldun repo ...
– engaged in an epic struggle. The fiercely brave, camelborne nomads of the western desert and steppe as well as the sedentary farmers of the Kabylie to the east swore allegiance to the Sanhaja. Their traditional enemies, the
Zenata
The Zenata (; ) are a group of Berber tribes, historically one of the largest Berber confederations along with the Sanhaja and Masmuda. Their lifestyle was either nomadic or semi-nomadic.
Society
The 14th-century historiographer Ibn Khaldun repo ...
, were tough, resourceful horsemen from the cold plateau of the
northern interior of Morocco and the western Tell in Algeria.
In addition, raiders from
Genoa
Genoa ( ; ; ) is a city in and the capital of the Italian region of Liguria, and the sixth-largest city in Italy. As of 2025, 563,947 people live within the city's administrative limits. While its metropolitan city has 818,651 inhabitan ...
,
Pisa
Pisa ( ; ) is a city and ''comune'' (municipality) in Tuscany, Central Italy, straddling the Arno just before it empties into the Ligurian Sea. It is the capital city of the Province of Pisa. Although Pisa is known worldwide for the Leaning Tow ...
, and
Norman Sicily
Sicily (Italian language, Italian and ), officially the Sicilian Region (), is an island in the central Mediterranean Sea, south of the Italian Peninsula in continental Europe and is one of the 20 regions of Italy, regions of Italy. With 4. ...
attacked ports and disrupted coastal trade. Trans-Saharan trade shifted to Fatimid Egypt and to routes in the west leading to Spanish markets. The countryside was being overtaxed by growing cities.
Contributing to these political and economic dislocations was a large incursion of Arab beduin from Egypt starting in the first half of the 11th century. Part of this movement was an invasion by the
Banu Hilal
The Banu Hilal () was a confederation of Arab tribes from the Najd region of the central Arabian Peninsula that emigrated to the Maghreb region of North Africa in the 11th century. They ruled the Najd, and campaigned in the borderlands between I ...
and
Banu Sulaym
The Banu Sulaym () is an Arab tribe that dominated part of the Hejaz in the pre-Islamic era. They maintained close ties with the Quraysh of Mecca and the inhabitants of Medina, and fought in a number of battles against the Islamic prophet Muha ...
tribes, apparently sent by the Fatimids to weaken the Zirids. These Arab beduin overcame the Zirids and Hammadids and in 1057 sacked Al Qayrawan. They sent farmers fleeing from the fertile plains to the mountains and left cities and towns in ruin.
For the first time, the extensive use of
Arabic
Arabic (, , or , ) is a Central Semitic languages, Central Semitic language of the Afroasiatic languages, Afroasiatic language family spoken primarily in the Arab world. The International Organization for Standardization (ISO) assigns lang ...
spread to the countryside. Many sedentary Berbers who sought protection from the Hilalians were gradually Arabized.
Almoravids
The
Almoravid movement developed early in the 11th century among the Sanhaja confederation, whose control of trans-Saharan trade routes was under pressure from the Zenata Berbers in the north and the state of Ghana in the south.
Yahya Ibn Ibrahim Yahya Ibn Ibrahim () (c. 1048) N. Levtzion and J. F. P. Hopkins, ''Corpus of Early Arabic Sources for West African History'' (Cambridge, 1981) was a leader of the Godala tribe in the Adrar plateau modern day Mauritania. Yahya Ibn Ibrahim's primary ...
, a leader of the
Godala
The Godala or Gudāla is a Berber tribe in Western Africa that lived along the Atlantic coast in present-day Mauritania and participated in the Saharan salt trade and the salt mines of Ijiil. The Godala may be linked to or the same as the ancient ...
tribe of the Sanhaja confederation, decided to raise the level of Islamic knowledge and practice among his people. To accomplish this, on his return from the
hajj
Hajj (; ; also spelled Hadj, Haj or Haji) is an annual Islamic pilgrimage to Mecca, Saudi Arabia, the holiest city for Muslims. Hajj is a mandatory religious duty for capable Muslims that must be carried out at least once in their lifetim ...
(Muslim pilgrimage to Mecca) in 1048–1049, he brought with him
Abdallah Ibn Yasin
ʿAbd Allāh ibn Yāsīn (; born in "Tamanart", died 7 July 1059 C.E. in "Krifla" near Rommani, present-day Morocco) was an Islamic theologian, spiritual leader and the founder of the Almoravid movement.
Early life, education and career
Abdalla ...
, a Moroccan scholar. In the early years of the movement, the scholar was concerned only with imposing moral discipline and a strict adherence to Islamic principles among his followers. Abd Allah ibn Yasin also became known as one of the marabouts, or holy persons (from
al murabitun, "those who have made a religious retreat").
The Almoravid movement shifted from promoting religious reform to engaging in military conquest after 1054 and was led by
Lamtuna
The Lamtuna () are a nomadic Berber tribe belonging to the Iẓnagen / Sanhaja (Zenaga) confederation, who traditionally inhabited areas from Sous to Adrar Plateau. During the Almoravid period, many Lamtunas emigrated northwards. Currently, the L ...
leaders: first Yahya, then his brother Abu Bakr, and then his cousin
Yusuf ibn Tashfin
Yusuf ibn Tashfin, also Tashafin, Teshufin, (; reigned c. 1061 – 1106) was a Sanhaja leader of the Almoravid Empire. He cofounded the city of Marrakesh and led the Muslim forces in the Battle of Sagrajas.
Yusuf ibn Tashfin came to al-And ...
. With
Marrakech
Marrakesh or Marrakech (; , ) is the fourth-largest city in Morocco. It is one of the four imperial cities of Morocco and is the capital of the Marrakesh–Safi Regions of Morocco, region. The city lies west of the foothills of the Atlas Mounta ...
as their capital, the
Almoravids
The Almoravid dynasty () was a Berber Muslim dynasty centered in the territory of present-day Morocco. It established an empire that stretched over the western Maghreb and Al-Andalus, starting in the 1050s and lasting until its fall to the Almo ...
had conquered Morocco, the Maghrib as far east as Algiers, and
Spain
Spain, or the Kingdom of Spain, is a country in Southern Europe, Southern and Western Europe with territories in North Africa. Featuring the Punta de Tarifa, southernmost point of continental Europe, it is the largest country in Southern Eur ...
up to the Ebro River by 1106. Under the Almoravids, the Maghrib and Spain acknowledged the spiritual authority of the
Abbasid caliphate
The Abbasid Caliphate or Abbasid Empire (; ) was the third caliphate to succeed the Islamic prophet Muhammad. It was founded by a dynasty descended from Muhammad's uncle, Abbas ibn Abd al-Muttalib (566–653 CE), from whom the dynasty takes ...
in
Baghdad
Baghdad ( or ; , ) is the capital and List of largest cities of Iraq, largest city of Iraq, located along the Tigris in the central part of the country. With a population exceeding 7 million, it ranks among the List of largest cities in the A ...
, reuniting them temporarily with the Islamic community in the Mashriq.
Although it was not an entirely peaceful time, North Africa benefited economically and culturally during the Almoravid period, which lasted until 1147. Muslim Spain (Andalus in Arabic) was a great source of artistic and intellectual inspiration. The most famous writers of Andalus worked in the Almoravid court, and the builders of the
Grand Mosque of Tilimsan
Grand may refer to:
People with the name
* Grand (surname)
* Grand L. Bush (born 1955), American actor
Places
* Grand, Oklahoma, USA
* Grand, Vosges, village and commune in France with Gallo-Roman amphitheatre
* Grand County (disambiguation) ...
, completed in 1136, used as a model the
Grand Mosque of Córdoba.
Almohads

Like the Almoravids, the
Almohad
The Almohad Caliphate (; or or from ) or Almohad Empire was a North African Berber Muslim empire founded in the 12th century. At its height, it controlled much of the Iberian Peninsula (Al-Andalus) and North Africa (the Maghreb).
The Almohad ...
s found their initial inspiration in
Islamic reform. Their spiritual leader, the Moroccan
Muhammad ibn Abdallah ibn Tumart, sought to reform Almoravid decadence. Rejected in Marrakech and other cities, he turned to his Masmuda tribe in the Atlas Mountains for support. Because of their emphasis on the unity of
God
In monotheistic belief systems, God is usually viewed as the supreme being, creator, and principal object of faith. In polytheistic belief systems, a god is "a spirit or being believed to have created, or for controlling some part of the un ...
, his followers were known as
Al Muwahhidun (unitarians, or Almohads).
Although declaring himself
mahdi
The Mahdi () is a figure in Islamic eschatology who is believed to appear at the Eschatology, End of Times to rid the world of evil and injustice. He is said to be a descendant of Muhammad in Islam, Muhammad, and will appear shortly before Jesu ...
,
imam
Imam (; , '; : , ') is an Islamic leadership position. For Sunni Islam, Sunni Muslims, Imam is most commonly used as the title of a prayer leader of a mosque. In this context, imams may lead Salah, Islamic prayers, serve as community leaders, ...
, and masum (infallible leader sent by God), Muhammad ibn Abdallah ibn Tumart consulted with a council of ten of his oldest disciples. Influenced by the Berber tradition of representative government, he later added an assembly composed of fifty leaders from various tribes. The Almohad rebellion began in 1125 with attacks on Moroccan cities, including
Sus and
Marrakech
Marrakesh or Marrakech (; , ) is the fourth-largest city in Morocco. It is one of the four imperial cities of Morocco and is the capital of the Marrakesh–Safi Regions of Morocco, region. The city lies west of the foothills of the Atlas Mounta ...
.
Upon Muhammad ibn Abdallah
ibn Tumart
Abū ʿAbd Allāh Muḥammad Ibn Tūmart (, ca. 1080–1130) was a Muslim religion, religious scholar, teacher and political leader, from the Sous in southern present-day Morocco. He founded and served as the spiritual and first military leader ...
's death in 1130, his successor
Abd al Mumin took the title of caliph and placed members of his own family in power, converting the system into a traditional
monarchy
A monarchy is a form of government in which a person, the monarch, reigns as head of state for the rest of their life, or until abdication. The extent of the authority of the monarch may vary from restricted and largely symbolic (constitutio ...
. The Almohads entered Spain at the invitation of the Andalusian amirs, who had risen against the Almoravids there. Abd al Mumin forced the submission of the amirs and reestablished the
caliphate of Córdoba
A caliphate ( ) is an institution or public office under the leadership of an Islamic steward with Khalifa, the title of caliph (; , ), a person considered a political–religious successor to the Islamic prophet Muhammad and a leader of ...
, giving the Almohad sultan supreme religious as well as political authority within his domains. The Almohads took control of Morocco in 1146, captured Algiers around 1151, and by 1160 had completed the conquest of the central Maghrib and advanced to Tripolitania. Nonetheless, pockets of Almoravid resistance continued to hold out in the Kabylie for at least fifty years.
After Abd al Mumin's death in 1163, his son
Abu Yaqub Yusuf
Abu Ya‘qub Yusuf or Yusuf I ( ''Abū Ya‘qūb Yūsuf''; 1135 – 14 October 1184) was the second Almohad ''Amir'' or caliph. He reigned from 1163 until 1184 in Marrakesh. He was responsible for the construction of the Giralda in Seville, whi ...
(r. 1163–84) and grandson
Yaqub al Mansur (r. 1184–99) presided over the zenith of Almohad power. For the first time, the Maghrib was united under a local regime, and although the empire was troubled by conflict on its fringes, handcrafts and agriculture flourished at its center and an efficient bureaucracy filled the tax coffers. In 1229, the Almohad court renounced the teachings of Ibn Tumart, opting instead for greater tolerance of opposing views. As evidence of this change, the Almohads hosted two of the greatest thinkers of Andalus:
Abu Bakr ibn Tufayl and
Ibn Rushd
Ibn Rushd (14 April 112611 December 1198), archaically Latinized as Averroes, was an Arab Muslim polymath and jurist from Al-Andalus who wrote about many subjects, including philosophy, theology, medicine, astronomy, physics, psychology, math ...
(Averroes).
The Almohads shared the crusading instincts of their
Castilian adversaries, but the continuing wars in Spain overtaxed their resources. In the Maghrib, the Almohad position was compromised by factional strife and was challenged by a renewal of tribal warfare. The
Bani Merin (Zenata Berbers) took advantage of declining Almohad power to establish a tribal state in Morocco, initiating nearly sixty years of warfare there that concluded with their capture of Marrakech, the last Almohad stronghold, in 1271. Despite repeated efforts to subjugate the central Maghrib, however, the Marinids were never able to restore the frontiers of the
Almohad Empire.
Zayyanids
From its capital at
Tunis
Tunis (, ') is the capital city, capital and largest city of Tunisia. The greater metropolitan area of Tunis, often referred to as "Grand Tunis", has about 2,700,000 inhabitants. , it is the third-largest city in the Maghreb region (after Casabl ...
, the
Hafsid
The Hafsid dynasty ( ) was a Sunni Muslim dynasty of Berber descentC. Magbaily Fyle, ''Introduction to the History of African Civilization: Precolonial Africa'', (University Press of America, 1999), 84. that ruled Ifriqiya (modern day Tunisia, w ...
dynasty made good its claim to be the legitimate successor of the Almohads in
Ifriqiya
Ifriqiya ( '), also known as al-Maghrib al-Adna (), was a medieval historical region comprising today's Tunisia, eastern Algeria, and Tripolitania (roughly western Libya). It included all of what had previously been the Byzantine province of ...
, while, in the central Maghrib, the
Zayyanids founded a dynasty that ruled the
Kingdom of Tlemcen
The Kingdom of Tlemcen or Zayyanid Kingdom of Tlemcen () was a kingdom ruled by the Berber Zayyanid dynasty in what is now the northwest of Algeria. Its territory stretched from Tlemcen to the Chelif bend and Algiers, and at its zenith reached ...
. Based on a Zenata tribe, the
Bani Abd el Wad, which had been settled in the region by Abd al Mumin, the Zayyanids also emphasized their links with the Almohads.
For more than 300 years, until the region came under Ottoman suzerainty in the 16th century, the Zayyanids kept a tenuous hold in the central Maghrib. The regime, which depended on the administrative skills of Andalusians, was plagued by frequent rebellions but learned to survive as the vassal of the
Marinid
The Marinid dynasty ( ) was a Berber Muslim dynasty that controlled present-day Morocco from the mid-13th to the 15th century and intermittently controlled other parts of North Africa (Algeria and Tunisia) and of the southern Iberian Peninsula ...
s or Hafsids or later as an ally of Spain.
Many coastal cities defied the ruling dynasties and asserted their autonomy as municipal republics. They were governed by their merchant oligarchies, by tribal chieftains from the surrounding countryside, or by the
privateer
A privateer is a private person or vessel which engages in commerce raiding under a commission of war. Since robbery under arms was a common aspect of seaborne trade, until the early 19th century all merchant ships carried arms. A sovereign o ...
s who operated out of their ports.
Tlemcen
Tlemcen (; ) is the second-largest city in northwestern Algeria after Oran and is the capital of Tlemcen Province. The city has developed leather, carpet, and textile industries, which it exports through the port of Rachgoun. It had a population of ...
prospered as a commercial center and was called the "pearl of the Maghrib." Situated at the head of the Imperial Road through the strategic
Taza Gap to
Marrakech
Marrakesh or Marrakech (; , ) is the fourth-largest city in Morocco. It is one of the four imperial cities of Morocco and is the capital of the Marrakesh–Safi Regions of Morocco, region. The city lies west of the foothills of the Atlas Mounta ...
, the city controlled the caravan route to
Sijilmasa
Sijilmasa (; also transliterated Sijilmassa, Sidjilmasa, Sidjilmassa and Sigilmassa) was a medieval Moroccan city and trade entrepôt at the northern edge of the Sahara in Morocco. The ruins of the town extend for five miles along the River Ziz ...
, gateway for the gold and slave trade with the western Sudan.
Aragon
Aragon ( , ; Spanish and ; ) is an autonomous communities of Spain, autonomous community in Spain, coextensive with the medieval Kingdom of Aragon. In northeastern Spain, the Aragonese autonomous community comprises three provinces of Spain, ...
came to control commerce between Tlemcen's port,
Oran
Oran () is a major coastal city located in the northwest of Algeria. It is considered the second most important city of Algeria, after the capital, Algiers, because of its population and commercial, industrial and cultural importance. It is w ...
, and Europe beginning about 1250. An outbreak of privateering out of Aragon, however, severely disrupted this trade after about 1420.
Marabouts
The successor dynasties in North Africa—
Marinids, Zayanids, and Hasfids—did not base their power on a program of religious reform as their predecessors had done. Of necessity, they compromised with rural
cult
Cults are social groups which have unusual, and often extreme, religious, spiritual, or philosophical beliefs and rituals. Extreme devotion to a particular person, object, or goal is another characteristic often ascribed to cults. The term ...
s that had survived the triumph of puritanical
orthodoxy
Orthodoxy () is adherence to a purported "correct" or otherwise mainstream- or classically-accepted creed, especially in religion.
Orthodoxy within Christianity refers to acceptance of the doctrines defined by various creeds and ecumenical co ...
in the 12th century despite the efforts of the Almoravids and Almohads to stamp them out.
The aridity of official Islam had little appeal outside the mosques and schools of the cities. In the countryside, wandering
marabout
In the Muslim world, the marabout () is a Sayyid, descendant of Muhammad (Arabic: سـيّد, Romanization of Arabic, romanized: ''sayyid'' and ''sidi'' in the Maghreb) and a Islam, Muslim religious leader and teacher who historically had the f ...
s, or holy people, drew a large and devoted following. These men and women were believed to possess divine grace (baraka) or to be able to channel it to others. In life, the marabouts offered spiritual guidance, arbitrated disputes, and often wielded political power. After death, their cults—some local, others widespread—erected domed tombs that became sites of pilgrimage.
Many tribes claimed descent from marabouts. In addition, small, autonomous republics led by holy men became a common form of government in the Maghrib. In Algeria, the influence of the marabouts continued through much of the Ottoman period, when the authorities would grant political and financial favors to these leaders to prevent tribal uprisings.
European offensive
The final triumph of the 700-year
Christian
A Christian () is a person who follows or adheres to Christianity, a Monotheism, monotheistic Abrahamic religion based on the life and teachings of Jesus in Christianity, Jesus Christ. Christians form the largest religious community in the wo ...
reconquest of Spain, marked by the fall of
Granada
Granada ( ; ) is the capital city of the province of Granada, in the autonomous communities of Spain, autonomous community of Andalusia, Spain. Granada is located at the foot of the Sierra Nevada (Spain), Sierra Nevada mountains, at the confluence ...
in 1492, was accompanied by the forced conversion of Spanish Muslims (Moriscos). As a result of the
Inquisition
The Inquisition was a Catholic Inquisitorial system#History, judicial procedure where the Ecclesiastical court, ecclesiastical judges could initiate, investigate and try cases in their jurisdiction. Popularly it became the name for various med ...
, thousands of
Jew
Jews (, , ), or the Jewish people, are an ethnoreligious group and nation, originating from the Israelites of ancient Israel and Judah. They also traditionally adhere to Judaism. Jewish ethnicity, religion, and community are highly inte ...
s fled or were deported to the Maghrib where many gained influence in government and commerce.
Without much difficulty, Christian Spain imposed its influence on the Maghrib coast by constructing fortified outposts (
presidio
A presidio (''jail, fortification'') was a fortified base established by the Spanish Empire mainly between the 16th and 18th centuries in areas under their control or influence. The term is derived from the Latin word ''praesidium'' meaning ''pr ...
s) and collecting tribute during the 15th and early 16th centuries. On or near the Algerian coast, Spain took control of
Mers el Kebir in 1505, Oran in 1509, and Tlemcen, Mostaganem, and Ténès, all west of
Algiers
Algiers is the capital city of Algeria as well as the capital of the Algiers Province; it extends over many Communes of Algeria, communes without having its own separate governing body. With 2,988,145 residents in 2008Census 14 April 2008: Offi ...
, in 1510. In the same year, the merchants of Algiers handed over one of the rocky islets in their harbor, where the Spaniards built a fort. The presidios in North Africa turned out to be a costly and largely ineffective military endeavor that did not guarantee access for Spain's merchant fleet. Indeed, most trade seemed to be transacted in the numerous free ports. Moreover, from the 16th to the 18th century, sailing superior ships and hammering out shrewd concessions, merchants from
England
England is a Countries of the United Kingdom, country that is part of the United Kingdom. It is located on the island of Great Britain, of which it covers about 62%, and List of islands of England, more than 100 smaller adjacent islands. It ...
,
Portugal
Portugal, officially the Portuguese Republic, is a country on the Iberian Peninsula in Southwestern Europe. Featuring Cabo da Roca, the westernmost point in continental Europe, Portugal borders Spain to its north and east, with which it share ...
, the
Netherlands
, Terminology of the Low Countries, informally Holland, is a country in Northwestern Europe, with Caribbean Netherlands, overseas territories in the Caribbean. It is the largest of the four constituent countries of the Kingdom of the Nether ...
,
France
France, officially the French Republic, is a country located primarily in Western Europe. Overseas France, Its overseas regions and territories include French Guiana in South America, Saint Pierre and Miquelon in the Atlantic Ocean#North Atlan ...
, and
Italy
Italy, officially the Italian Republic, is a country in Southern Europe, Southern and Western Europe, Western Europe. It consists of Italian Peninsula, a peninsula that extends into the Mediterranean Sea, with the Alps on its northern land b ...
, as well as
Spain
Spain, or the Kingdom of Spain, is a country in Southern Europe, Southern and Western Europe with territories in North Africa. Featuring the Punta de Tarifa, southernmost point of continental Europe, it is the largest country in Southern Eur ...
, dominated
Mediterranean trade.
Why Spain did not extend its North African conquests much beyond a few modest enclaves has puzzled historians. Some suggest that Spain held back because it was preoccupied with maintaining its territory in Italy; others that Spain's energies were absorbed in obtaining the riches of the
New World
The term "New World" is used to describe the majority of lands of Earth's Western Hemisphere, particularly the Americas, and sometimes Oceania."America." ''The Oxford Companion to the English Language'' (). McArthur, Tom, ed., 1992. New York: ...
. Still another possibility is that Spain was more intent on projecting its force on the high seas than on risking defeat in the forbidding interior of Africa.
Privateers
Privateering was an age-old practice in the
Mediterranean
The Mediterranean Sea ( ) is a sea connected to the Atlantic Ocean, surrounded by the Mediterranean basin and almost completely enclosed by land: on the east by the Levant in West Asia, on the north by Anatolia in West Asia and Southern ...
. North African rulers engaged in it increasingly in the late 16th and early 17th century because it was so lucrative, and because their merchant vessels, formerly a major source of income, were not permitted to enter
Europe
Europe is a continent located entirely in the Northern Hemisphere and mostly in the Eastern Hemisphere. It is bordered by the Arctic Ocean to the north, the Atlantic Ocean to the west, the Mediterranean Sea to the south, and Asia to the east ...
an ports. Although the methods varied, privateering generally involved private vessels raiding the ships of an enemy in peacetime under the authority of a ruler. Its purposes were to disrupt an opponent's trade and to reap rewards from the captives and cargo.
Privateering was a highly disciplined affair conducted under the command of the rais (captains) of the fleets. Several captains became heroes in Algerian lore for their bravery and skill. The captains of the corsairs banded together in a self-regulating
taifa
The taifas (from ''ṭā'ifa'', plural ''ṭawā'if'', meaning "party, band, faction") were the independent Muslim principalities and kingdoms of the Iberian Peninsula (modern Portugal and Spain), referred to by Muslims as al-Andalus, that em ...
(community) to protect and further the corporate interests of their trade. The taifa came to be ethnically mixed, incorporating those captured Europeans who agreed to convert to Islam and supply information useful for future raids. The taifa also gained prestige and political influence because of its role in fighting the infidel and providing the merchants and rulers of Algiers with a major source of income. Algiers became the privateering city-state par excellence, especially between 1560 and 1620. And it was two privateer brothers who were instrumental in extending Ottoman influence in Algeria.
See also
*
Second Barbary War
The Second Barbary War, also known as the U.S.–Algerian War and the Algerine War, was a brief military conflict between the United States and the North African state of Algiers in 1815.
Piracy had been rampant along the North African "Barb ...
*
History of Islam
The history of Islam is believed, by most historians, to have originated with Muhammad's mission in Mecca and Medina at the start of the 7th century CE, although Muslims regard this time as a return to the original faith passed down by the Abr ...
*
Islam in Algeria
Islam is the majority and state religion in Algeria. The vast majority of citizens are Sunni Muslims belonging to Maliki school of jurisprudence, with a minority of Ibadi Muslims, most of whom live in the M'zab Valley region. Islam provides th ...
References
Sources
*Original text:
Library of Congress Country Studyof Algeria''
{{Timeline of the Maghreb dynasties
01
.
Algeria, Medieval