12/04/2026
6/50 – Casablanca’s History
6 – “Anafa” (ⴰⵏⴼⴰ, Barghwata)
Period: 744 – 1058 AD
During the early medieval period, the Atlantic region of Tamesna — including the coastal zone of Anafa (Anfa) — was integrated into the political sphere of the Barghwata Confederation, one of the most unique indigenous Amazigh states in Moroccan history.
Unlike the centralized Islamic dynasties that later dominated Morocco, the Barghwata established a locally rooted political and religious system, demonstrating the diversity of early medieval Maghreb societies.
Historical context of the Barghwata period
Formation of the Barghwata state (744 AD)
The Barghwata confederation was founded by Salih ibn Tarif, an Amazigh leader who emerged during the period of political fragmentation following the early Islamic expansion in North Africa.
Key characteristics of this era:
• Establishment of an independent Amazigh kingdom in Tamesna
• Development of a distinct religious doctrine, different from mainstream Islamic centers
• Formation of a regional political structure based on tribal alliances
• Relative autonomy from eastern Maghreb political authorities
The Barghwata kingdom endured for more than three centuries, making it one of the longest-lasting local political entities in Atlantic Morocco before the rise of major dynasties.
Anafa within the Tamesna territory
Although major medieval urban centers were located elsewhere, Anafa occupied a geographically strategic coastal position that allowed it to function as a secondary maritime contact point.
Probable characteristics of Anafa during the Barghwata era:
Coastal role
• modest Atlantic coastal settlement
• local anchorage for regional navigation
• connection between inland Tamesna plains and ocean routes
Economic activity
• exchange between inland Amazigh tribes and coastal traders
• fishing and marine resources
• small-scale regional commerce
• agricultural products from the Chaouia plains
Strategic importance
The Atlantic coast provided:
• access to maritime circulation routes
• communication between coastal settlements
• connection to broader Maghreb networks
Even without major urban expansion, the geographic location helped maintain continuity of settlement in the area that would later become Anfa and eventually Casablanca.
Religious and cultural particularity
The Barghwata are historically notable for developing a religious interpretation adapted to local Amazigh traditions, reflecting the diversity of belief systems during the early medieval Maghreb period.
Historical sources describe:
• localized religious practices
• adaptation of monotheistic concepts
• integration of tribal structures into governance
This illustrates the complex interaction between indigenous traditions and expanding Islamic cultural influence across North Africa.
Decline of the Barghwata (11th century)
Between the 11th century and mid-12th century, the Barghwata political structure weakened as new regional powers emerged in Morocco.
Factors contributing to decline:
• military pressure from rising dynasties
• shifting regional alliances
• transformation of trade routes
• integration into wider Maghreb political systems
By the mid-11th century, the region progressively entered the sphere of influence of emerging Islamic dynasties, marking the transition toward a new historical phase for Anafa.