The full Arabic name al-Mamlakat al-Maghribiyyah (المملكة المغربية) translates to "The Western Kingdom". Al-Maghrib (المغرب), meaning "The West", is commonly used. For historical references, medieval Arab historians and geographers used to refer to Morocco as al-Maghrib al-Aqṣá (المغرب الأقصى, "The Farthest West"), disambiguating it from neighboring historical regions called al-Maghrib al-Awsaṭ (المغرب الأوسط, "The Middle West", Algeria) and al-Maghrib al-Adná (المغرب الأدنى, "The Nearest West",Tunisia).
The English name "Marocco" originates from Spanish "Marruecos" or the Portuguese "Marrocos", from medieval Latin"Morroch", which referred to the name of the former Almoravid and Almohad capital, Marrakesh. In Persian and Urdu, Morocco is still called "Marrakesh". Until recent decades, Morocco was called "Marrakesh" in Middle Eastern Arabic. In Turkish, Morocco is called "Fas" which comes from the ancient Idrisid and Marinid capital, Fez.
The word "Marrakesh" is made of the Berber word combination Murt n Akush (Murt n Akuc), meaning Land of God.