Idrisid dynasty
During the 11th century, the Banu Ifran contested with the Maghrawa tribe for the control of the Maghreb al-Aqsa (present-day Morocco) after the fall of the Idrisid dynasty. Ya'la's son Yaddū took Fes by surprise in January 993 and held it for some months until the Maghrawa ruler Ziri ibn Atiyya returned from Spain and reconquered the region.