Barghawata Confederacy (Masmuda Berber tribal confederacy)
Years: 739 - 1058
The Barghawata (also Barghwata or Berghouata) are a confederation of Berber tribes of the Atlantic coast of Morocco, belonging to the Masmuda group of tribes.
After allying with the Sufri Kharijite rebellion in Morocco against the Umayyads, they establish an independent state (CE 744 - 1058) in the area of Tamesna on the Atlantic coast between Safi and Salé under the leadership of Tarif al-Matghari.
Related Events
Filter results
Showing 10 events out of 48 total
North Africa (736–747 CE)
Berber Revolt, Kharijite Uprisings, and Fragmentation of Umayyad Authority
Between 736 and 747 CE, North Africa experiences profound turmoil as indigenous Berber resentment erupts into widespread rebellion against the Umayyad Caliphate, known as the Berber Revolt (739–743 CE). This period marks a critical turning point, reshaping regional politics and paving the way for independent Berber dynasties.
The initial spark igniting widespread revolt occurs in 739 CE, driven by accumulated grievances including oppressive taxation, discriminatory practices, forced conscription, and the enslavement of Berber converts. This unrest quickly coalesces around the egalitarian ideals of the radical Islamic Kharijite sect, which advocates equality among all Muslims, irrespective of ethnic background, in stark contrast to Umayyad policies favoring Arab supremacy.
Berber groups across the Maghreb rise in unison, significantly challenging Umayyad control. Tribes from the mountainous Aurès, along with powerful confederations such as the Austoriani, Leutae, and the fiercely autonomous Laguatan, unite under Kharijite leadership, notably figures such as Maysara al-Matghari, whose forces gain rapid success.
Amid the chaos, the western coastal Barghawata confederation establishes itself as an independent entity, adopting a distinctive form of Islam deeply infused with local Berber traditions. Their unique religious identity underscores the fragmentation of religious authority during this period.
Simultaneously, oasis cities like Ouargla flourish economically despite regional instability, maintaining prosperous trade connections across Saharan routes controlled largely by influential Tuareg tribes. This economic autonomy bolsters local Berber power, further weakening central Umayyad authority.
The Berber Revolt severely destabilizes Umayyad dominance, forcing Arab forces to retreat to strongholds in Ifriqiya, primarily around Kairouan. Though the Umayyads eventually regain partial control by 743 CE, their grip on North Africa remains tenuous, significantly diminished in comparison to previous decades.
By 747 CE, North Africa is fundamentally transformed. The Berber Revolt, despite its eventual suppression, profoundly weakens centralized Umayyad governance, leading directly to the rise of independent Berber-ruled dynasties and deepening regional fragmentation. The era concludes with North Africa entering a new phase marked by vibrant local autonomy, diverse religious interpretations, and shifting political alliances.
The Berbers have long resented the second-class status accorded to them by the ruling Arab military caste.
Berber Muslims have been intermittently subjected to extraordinary taxation and slave-tributes, contrary to Islamic law.
As a result, many Berbers have grown receptive to puritan Kharijite activists, particularly those of the Sufrite sect, that had begun arriving in the Maghreb, preaching a new political order in which all Muslims are to be treated without regard for ethnicity or tribal status.
Maysara's Matghara tribe has been particularly taken up with Sufrite influence.
In the late 730s, the new Umayyad governor Ubayd Allah ibn al-Habhab of Ifriqiya had ratcheted up his fiscal exactions to make up for the financial shortfalls.
His regional deputies, notably Omar ibn al-Moradi, governor of Tangiers, have implemented some inventive and highly oppressive schemes to extract more revenues from the Berbers under his jurisdiction.
Contravening Islamic law and the 718 edicts of the Caliph Umar II, Ubayd Allah has reinstated some of the extraordinary dhimmi taxation (the jizyah and kharaj) and slave-tributes on the Muslim Berber population, provoking immense opposition.
Similar policies have been implemented by his deputies Oqba ibn al-Saluli in al-Andalus and (with particular zeal) Omar ibn el-Moradi in Morocco, but Ubayd Allah has gone above and beyond his duties.
Seeking to satisfy the luxurious tastes of the nobles of Damascus, Ubayd Allah has sent his officials in the relentless pursuit of the highly prized wool of unborn Merino lambs, seizing (and destroying) entire flocks—the livelihoods of many Berber communities—just to gather the handful he could dispatch back to Syria.
Berber girls and women are also highly prized as concubines by Damascus lords.
Ubayd Allah, eager to please as always, has ordered them seized and kidnapped in great numbers, not stopping even at the wives and daughters of loyal Berber chieftains.
By 739 or so, the main Berber tribes under Omar's jurisdiction in western Morocco—principally the Gomara, Barghawata and Miknasa—decide they have had enough and prepare for rebellion.
Forming an alliance, they elect the Matghara chieftain Maysara to lead them.
It is not a spontaneous uprising.
Maysara and the Berber commanders seem to have been careful enough to wait until the bulk of the Ifriqiyan army has left North Africa on an expedition to Sicily before springing into action.
The exact biographical details of Maysara at Maghari are obscure, and made more complicated by what are likely scurrilous stories circulated by his enemies.
Chroniclers have recorded allegations that Maysara was a low-born Berber water-seller in Kairouan or Tangiers, possibly a water-carrier in the caliphal army.
Chronicles routinely refer to him by the unflattering label of al-Hakir, 'the Ignoble' or 'the Vile'.
Ibn Khaldun, however, was probably closer to the truth in proposing that his origins were perhaps not so humble, that Maysara was probably a significant chieftain or sheikh of the Berber Matghara tribe.
Al-Tabari reports that Maysara had even headed a Berber delegation to Damascus to present the Berber complaints before the Caliph Hisham, and the complaints were many.
The Great Berber Revolt finally begins in 740 after the Ifriqiyan army has safely departed.
Maysara assembles his coalition of Berber armies, heads shaven in the Kharajite fashion, Qur'ans hanging from their spears, and leads them bearing down on Tangiers.
The city quickly falls into their hands and the hated governor Omar al-Moradi is put to death.
Maysara places the Berber garrison in Tangiers under the command of a converted Christian, Abd al-Allah al-Hodeij al-Ifriqi, then proceeds to sweep down western Morocco, overwhelming Umayyad garrisons clear down to the Sous valley.
In a very short time, the whole length of western Morocco, from the Straits of Gibraltar to the Anti-Atlas, are in the hands of Maysara's rebels.
It is said that Maysara took up the title of amir al-mu'minin ('Commander of the Faithful', or 'Caliph') after his victory at Tangiers (or perhaps a little earlier).
This is probably the first time that a non-Arab lays claim to the supreme Muslim title.
Indeed, it might have been the first time anyone not connected by blood to the Prophet's Quraish tribe, had dared lay such a claim.
To orthodox Muslims of the time, the idea of a 'Berber caliph' must have seemed like an absurdity.
The rumor that Maysara was a lowly 'water-carrier' probably got started around this, if only to make the caliphal pretension seem even more self-aggrandizingly ridiculous, and consequently the entire rebellion misguided.
Because this step seemed to open the rebels to mockery, some have wondered whether the story of Maysara taking up the caliphal title was not fabricated, from start to finish, by Umayyad propagandists.
However, this rebellion has been fired up and led by Sufrite Kharijites, and one of the central tenets of Kharijite ideology is precisely that the caliphal title is open to any good pious Muslim, regardless of dynastic or tribal qualifications.
Moreover, this was, at least on the ideological plane, a Muslim uprising, open to all true Muslims, and not a Berber liberation movement.
Consequently, Maysara, as the commander of the true Muslims, could have no other title but 'caliph'.
To keep the Berber rebels in check until the Sicilian expedition army returns, Obeid Allah assembles a cavalry-heavy column composed largely of the aristocratic Arab elite of Kairouan, and places it under the command of Khalid ibn Abi Habib.
This column is dispatched immediately to Tangiers and instructed to serve as the vanguard until the Sicilian expeditionary force under Habib disembarks and catches up with them.
The Berbers now depose Maysara on account of cowardice, for having hastily ordered a retreat after the skirmish with the Arab column, and place the rebel army in the hands of a more experienced military commander, the Zenata chieftain Khalid ibn Hamid.
They later execute Maysara.
Khalid ibn Abi Habib encounters the Berber rebel army in the outskirts of Tangiers, and after a couple of skirmishes, forces them to pull back.
As per the instructions he has been given, Khalid holds his position south of Tangiers, awaiting the reinforcements from Sicily.
But before junction can be made, the Berber rebel army, under Khalid ibn Hamid al-Zanati, falls upon the Arab column in October/November 740.
Khalid ibn Abi Habib and his column, the flower of the Ifriqiyan nobility, are annihilated by the Berbers in what will become known as the Battle of the Nobles.
News of the slaughter of the Ifriqiyan nobles spreads like a shock-wave.
The reserve army of Ibn al-Mughira in Tlemcen falls into a panic.
Seeing Sufrite preachers everywhere around the city, the troops launch a series of indiscriminate massacres, provoking a massive uprising in the hitherto-quiet city.
The Sicilian expeditionary army of Habib ibn Abi Obeida had arrived too late to prevent the massacre of the nobles.
Realizing they were in no position to take on the Berbers by themselves, they have retreated to Tlemcen to gather the reserves, only to find that that city too is now in disarray and the troops killed or scattered.
Habib ibn Abi Obeida entrenched what remains of the Ifriqiyan army in the vicinity of Tlemcen (perhaps as far back as Tahert), and calls upon Kairouan for reinforcements.
The request is forwarded to Damascus.
Caliph Hisham, shocked at the news of the defeat, had dismissed Ubayd Allah in February 741 and had begun preparations to dispatch a large eastern Arab army under a new governor, Kulthum ibn Iyad al-Qasi to crush the Berber rebellion.
The disgraced Ubayd Allah leaves Ifriqiya in April 741, and returns to the east.
Kulthum is to be accompanied by fresh Arab army of thirty thousand raised from the Syrian regiments (junds) of the east—specifically, Damascus, Jordan, Qinnasrin, Emesa (Hims), Palestine and Egypt.
The military command of this elite 'Syrian' army is given to Kulthum's nephew and designated successor Balj ibn Bishr al-Qushayri and the vice-command to the designated second successor, Thalaba ibn Salama al-Amili (should tragedy befall the prior two).
The elite Syrian cavalry under Balj ibn Bishr, which had moved ahead of the bulk of the forces, is the first to arrive in Kairouan in the summer of 741.
Their brief stay is not a happy one.
The Syrians had arrived in haughty spirits and quarreled with the Kairouan city authorities, who, suspicious, had given them a rather cool reception.
Interpreting it as ingratitude, the Syrian barons had imposed themselves on the city, billeting troops and requisitioning supplies without regard to local authorities or priorities.
(The members of the Syrian expedition are of different tribal stock than the Arabs they came to save.
The early Arab colonists of Ifriqiya and al-Andalus had been drawn largely from tribes of south Arabian origin (known as Kalbid or 'Yemenite' tribes), whereas the Syrian junds were mostly of north Arabian tribes (Qaysid or Mudharite tribes).
The ancient and deep pre-Islamic tribal rivalry between Qaysid and Yemenite finds itself invoked in repeated quarrels between the earlier colonists and the arriving junds.
Kulthum ibn Iyad, moving slower with the bulk of the forces, does not himself enter Kairouan, but merely dispatches a message assigning the government of the city to Abd al-Rahman ibn Oqba al-Ghaffari, the qadi (a judge ruling in accordance with Islamic religious law) of Ifriqiya.
Collecting the Syrian vanguard, Kulthum hurries along to make junction with the remaining Ifriqiyan forces (some forty thousand) of Habib ibn Abi Obeida al-Fihri holding ground in the vicinity of Tlemcen.
The junction between the North African and Eastern forces does not go smoothly.
News of the Syrian misbehavior in Kairouan had reached the Ifriqiyan troops, while the Syrians, incensed at the poor reception, treat their Ifriqiyan counterparts in a high-handed fashion.
Habib and Balj bicker and the armies nearly come to blows.
By smooth diplomacy, Kulthum ibn Iyad manages hold the armies together, but the mutual resentments will play a role in subsequent events.
The Berber rebel army, under the leadership of Khalid ibn Hamid al-Zanati (perhaps jointly with a certain Salim Abu Yusuf al-Azdi, while boasting great numbers (some two hundred thousand), are very poorly equipped.
Many Berber fighters have nothing but stones and knives, dressed in a mere loin cloth, heads shaved in puritan fashion.
But they make up for this in knowledge of the terrain, excellent morale, and a fanatical Sufrite-inspired religious fervor.
The Berber and Arab armies finally clash at the Battle of Bagdoura (or Baqdura) in October–November, 741, by the Sebou river (near modern Fes).
Disdaining the experience and cautious advice of the Ifriqiyans, Kulthum ibn Iyad makes several serious tactical errors.
Berber skirmishers dehorse and isolated the Syrian cavalry, while the Berber foot falls upon the Arab infantry with overwhelming numbers.
The Arab armies are quickly routed.
By some estimates, two-thirds of the Arab army are killed or captured by the Berbers at Bagdoura.
Among the casualties are the new governor Kulthum ibn Iyad al-Qasi and the Ifriqiyan commander Habib ibn Abi Obeida al-Fihri.
The Syrian regiments, now reduced to some ten thousand, are pulled together by Kulthum's nephew, Balj ibn Bishr and scramble up towards the straits, where they hope to get passage across the water to Spain.
A small Ifriqiyan contingent, under Habib's son Abd al-Rahman ibn Habib al-Fihri, joins the Syrians in their flight, but …
…the rest of the Ifriqiyan forces flee in disorder back to Kairouan.
The bulk of the Berber rebel army sets off in pursuit of the Syrians, and lays siege to them in Ceuta.
The Zenata Berber leader Khalid ibn Hamid al-Zanati, who has delivered the two great victories over the Arab armies, disappears from the chronicles shortly after Bagdoura, but news of the defeat emboldens hitherto quiet Berber tribes to join the revolt.
Berber uprisings erupt across the Maghreb and al-Andalus.
The most immediate threat arises in southern Ifriqiya, where the Sufrite leader Oqasha ibn Ayub al-Fezari raises a Berber army and lays siege to Gabès and …
…Gafsa.
The Kairouan qadi Abd al-Rahman ibn Oqba al-Ghaffari manages to defeat and disperse Oqasha's forces near Gafsa in December, 741, by a rapid sally south with the remnant of the Ifriqiyan army, but the qadi possesses far fewer Arab troops to put up a pursuit, and …
