Berber languages evidence from medieval Berber manuscripts that all indigenous North Africans from Libya to Morocco have at some point called their language "Tamaziɣt". The name "Tamaziɣt" is currently being used increasingly by educated Berbers to refer to the written Berber language, and even to Berber as a whole, including Tuareg. In 2001, Berber became a constitutional national language of Algeria, and in 2011 Berber became a constitutionally official language of Morocco. In 2016, Berber became a constitutionally official language of Algeria alongside Arabic. The term "Berber" has been used in Europe since at least the 17th century and is still used
Berber Revolt and al-Andalus (Spain and Portugal) from falling into rebel hands. But the rest of the Maghreb was never recovered. After failing to capture the Umayyad provincial capital of Kairouan, the Berber rebel armies dissolved, and the western Maghreb fragmented into a series of small Berber statelets, ruled by tribal chieftains and Kharijite imams. The Berber revolt was probably the largest military setback in the reign of Caliph Hisham. From it, emerged some of the first Muslim states outside the Caliphate. It is sometimes also regarded as the beginning of Moroccan independence, as Morocco would never again come under the rule