From the 11th century onwards, a series of Berber dynasties arose.[32][33][34] Under the Sanhaja Almoravid dynasty and the Masmuda Almohad dynasty,[35] Morocco dominated the Maghreb, al-Andalus in Iberia, and the western Mediterranean region. From the 13th century onwards the country saw a massive migration of the Banu Hilal Arab tribes. In the 13th and 14th centuries the Merinids held power in Morocco and strove to replicate the successes of the Almohads through military campaigns in Algeria...