Proto-Berber language reached the stage where these different branches of this language family evolved. From that perspective, Proto-Berber was the first Berber stage to depart from Proto-Afrosiatic in the eighth millennium. It was restructured several times during the almost 10,000 years that separated it from its modern shape, which has preserved few relics. Roger Blench (2018) suggests that Proto-Berber speakers experienced intense language leveling about 2,000 years ago as the Roman Empire was expanding in North Africa. Hence, although Berber had split off from Afroasiatic several thousand years ago, Proto-Berber itself can only be reconstructed to a period as late as 200
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