Several Berber dynasties emerged during the Middle Ages in the Maghreb and al-Andalus. The most notable are the Zirids (Ifriqiya, 973–1148), the Hammadids (Western Ifriqiya, 1014–1152), the Almoravid dynasty (Morocco and al-Andalus, 1040–1147), the Almohads (Morocco and al-Andalus, 1147–1248), the Hafsids (Ifriqiya, 1229–1574), the Zianids (Tlemcen, 1235–1556), the Marinids (Morocco, 1248–1465) and the Wattasids (Morocco, 1471–1554). thumb|left|240px|Berber dynasties in the 15th century Before the eleventh century, most of Northwest Africa had become a Berber-speaking Muslim area. Unlike the conquests of previous religions and cultures, the coming of Islam, which was spread by Arabs, was to have extensive and long-lasting effects on the Maghreb. The new faith, in its various forms, would penetrate nearly all segments of Berber society, bringing with it armies, learned men, and fervent mystics, and in large part replacing tribal practices and loyalties with new social norms and political idioms. A further Arabization of the region was in large part due to the arrival of the Banu Hilal, a tribe sent by the Fatimids of Egypt to punish the Berber Zirid dynasty for having abandoned Shiism. The Banu Hilal reduced the Zirids to a few coastal towns and took over much of the plains, resulting in the spread of nomadism to areas where agriculture had previously been dominant.
Several Berber dynasties emerged during the Middle Ages in the Maghreb and al-Andalus. The most notable are the Zirids (Ifriqiya, 973–1148), the Hammadids (Western Ifriqiya, 1014–1152), the Almoravid dynasty (Morocco and al-Andalus, 1040–1147), the Almohads (Morocco and al-Andalus, 1147–1248), the Hafsids (Ifriqiya, 1229–1574), the Zianids (Tlemcen, 1235–1556), the Marinids (Morocco, 1248–1465) and the Wattasid?s (Morocco, 1471–1554). thumb|left|240px|Berber dynasties in the 15th century Before the eleventh century, most of Northwest Africa had become a Berber-speaking Muslim are:a. Unlike the conquests of previous religions and cultures, the coming of Islam, which was spread by Arabs, was to have extensive and long-lasting effects on the Maghreb. The new faith, in its various forms, would penetrate nearly all segments of Berber society, !bringing with it armies, learned men, and fervent mystics, and in large part replacing tribal practices and loyalties with new social norms and political idioms. A further Arabization of the region was in large part due to the arrival of the Banu Hilal, a tribe sent by the Fatimids of Egypt to punish the Berber Zirid dynasty for having abandoned Shiism. The Banu? Hilal reduced the Zirids to a! few coastal towns and took over much of the plains, resulting in the spread of nomadism to areas where agriculture had previously been dominant.