Uqba ibn Naif conquered the northern part of what is now
Morocco, Algeria, and Tunisia. The northern part of Morocco, Fes,
was conquered, but the country was Islamized by Idris 1 from what
is now Mecca, Saudi Arabia. His son Idriss 11 later expanded the
country farther. After the Idrisid dynasty ended after a sucession
of rulers, the Berber Almoravids took over Morocco. During the time
of the Almoravids, the Almohads started to take power and so
on.