Morocco Morocco Morocco (; ; ), officially the Kingdom of Morocco (; ), is a country located in the Maghreb of North West Africa with an area of . Its capital is Rabat, the largest city Casablanca. It overlooks the Mediterranean Sea to the north and the Atlantic Ocean to the west, bordered to the east by Algeria and to the south by Mauritania. Morocco claims the areas of Ceuta, Melilla and Peñón de Vélez de la Gomera, all of them currently under Spanish jurisdiction. Since the foundation of the first Moroccan state by Idris I in 788 AD, the country
Morocco to Morocco after the Abbasids' massacre of his tribe in Iraq. He convinced the Awraba Berber tribes to break their allegiance to the distant Abbasid caliphs in Baghdad and he founded the Idrisid dynasty in 788. The Idrisids established Fes as their capital and Morocco became a centre of Muslim learning and a major regional power. The Idrissids were ousted in 927 by the Fatimid Caliphate and their Miknasa allies. After Miknasa broke off relations with the Fatimids in 932, they were removed from power by the Maghrawa of Sijilmasa in 980. From the 11th century onwards, a series of