In the 13th century the Marinids, a Berber dynasty, ruled what is now this country with Fez as their capital
[DOC] [TLE] Marinid dynasty - Wikipedia [PAR] The Marinid dynasty (Berber: Imrinen, Arabic: Marniyn) or Banu abd al-Haqq 
was a Sunni Muslim dynasty of Zenata Berber descent that ruled Morocco from 
the 13th to the 15th century.