The Sanhaja (also Zenaga, Veledi Sanhája, Znaga, Sanhája, Sanhâdja, Senhaja; Berber: Aẓnag, Iẓnagen; Arabic: صنهاجة, Ṣanhājah) were once one of the largest Berber tribal confederations of the Maghreb, along with the Zanata and Masmuda. Many tribes in Berber areas bore and still carry this ethnonym, especially in its Berber form.
After the arrival of Islam, the Sanhâdja spread out to the borders of the Sudan as far as the Senegal River and the Niger. From the 9th century, Sanhaja tribes were established in the Middle Atlas range, in the Rif Mountains and on the Atlantic coast of Morocco. A part of the Sanhaja, such as the Kutâma, settled in central/eastern Algeria and northern Niger. They played an important part in the rise of the Fatimids. The Sanhaja dynasties of the Zirids and Hammâdids controlled Ifriqiya until the 12th century.
In the mid-11th century, a group of Sanhadja chieftains returning from the Hâjj (big pilgrimage) invited the theologian Ibn Yâssin to preach among their tribes. Ibn Yasin united the tribes in the alliance of the Almoravids in the middle of the 11th century. This confederacy subsequently established Morocco, and conquered western Algeria and Al-Andalus (part of present-day Spain).
The Znaga or Zenaga tribes would remain in roles as either exploited semi-sedentary agriculturalists and fishermen (Znaga tribes), or, higher up on the social ladder, as religious (Marabout or Zawiya) tribes. Though often Arabized in culture and language, they are believed to be descended from the Zenata or Sanhaja Berber population present in the area before the arrival of the Arab Maqil tribes in the 12th century, which was finally subjected to domination by Arab-descended warrior castes in the 17th century Char Bouba war according to Mercer, the word "znaga" is thought to be a distortion of "Zeneta and Sanhaja".
The descendants of the Sanhaja are still found today in the Middle Atlas mountains and eastern Morocco.
- Nelson, Harold D. (1985). Morocco, a country study. Washington, D.C.: The American University. p. 14.
- Nelson 15-16
- "Sanhaja tribe", Library of Congress
- John O. Hunwick (ed.), West Africa, Islam and the Arab World: Studies in Honor of Basil Davidson Paperback
- John Mercer (1976), Spanish Sahara, George Allen & Unwin Ltd (ISBN 0-04-966013-6)
- Anthony G. Pazzanita (2006), Historical Dictionary of Western Sahara, Scarecrow Press
- Virginia Thompson and Richard Adloff (1980), The Western Saharans. Background to Conflict, Barnes & Noble Books (ISBN 0-389-20148-0)