The Marinid Sultanate was a Berber Muslim empire from the mid-13th to the 15th century which controlled present-day Morocco and, intermittently, other parts of North Africa (Algeria and Tunisia) and of the southern Iberian Peninsula (Spain) around Gibraltar. It was named after the Banu Marin (Arabic: بنو مرين, Berber: Ayt Mrin), a Zenata Berber tribe. The sultanate was ruled by the Marinid dynasty (Arabic: المرينيون al-marīniyyūn), founded by Abd al-Haqq I.