Islam in Morocco
Islam was first brought to Morocco in 680 by an Arab invasion under Oqba ben Nafi. He rode his horse into the Atlantic Ocean saying that was all that prevented him from more conquests. He called Morocco Maghreb al-Aksa (meaning the farthest west). In 788, The Zaydi Shia Idrisids ruled large parts of Morocco. Later, several Berbers formed more powerful Islamic dynasties that reigned over the country. Among them were the Almoravids, who were the first to unite Morocco. They also united significant regions in West Africa, Spain and Algeria. These Almoravids were responsible for making the Maliki school the most prominent in Morocco.