The Maghreb (ˈmʌɡrəb; al-Maghrib), also known as the Arab Maghreb (المغرب العربي) and Northwest Africa, is the western part of the Arab world. The region comprises western and central North Africa, including Algeria, Libya, Mauritania (also considered part of West Africa), Morocco, and Tunisia. The Maghreb also includes the disputed territory of Western Sahara (controlled mostly by Morocco and partly by the Sahrawi Arab Democratic Republic) and the Spanish cities Ceuta and Melilla. As of 2018, the region had a population of over 100 million people.
The Maghreb is usually defined as encompassing much of the northern part of Africa, including a large portion of the Sahara Desert, but excluding Egypt and Sudan, which are considered to be located in the Mashriq — the eastern part of the Arab world. The traditional definition of the Maghreb — which restricted its scope to the Atlas Mountains and the coastal plains of Morocco, Algeria, Tunisia and Libya — was expanded in modern times to include Mauritania and the disputed territory of Western Sahara. During the era of Al-Andalus on the Iberian Peninsula (711–1492), the Maghreb's inhabitants — the Muslim Maghrebis — were known by Europeans as the "Moors". The Greeks referred to the region as the "Land of the Atlas", referring to its Atlas Mountains.
Before the establishment of modern nation states in the region during the 20th century, the Maghreb most commonly referred to a smaller area, between the Mediterranean Sea and the Atlas Mountains in the south. It often also included the territory of eastern Libya, but not modern Mauritania. As recently as the late 19th century, the term "Maghreb" was used to refer to the western Mediterranean region of coastal North Africa in general, and to Algeria, Morocco, and Tunisia in particular.
During the rule of the Berber kingdom of Numidia, the region was somewhat unified as an independent political entity. This period was followed by one of the Roman Empire's rule or influence.