 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).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.