Wikipedia
Maghrebis or Maghrebians are the inhabitants of the countries of the Maghreb (Northwest Africa): Algeria, Morocco, Tunisia, Libya and Mauritania. The bulk of the Maghrebi population originates in the Berbers known in antiquity as the Libyans (called lebu/rebu by the ancient Egyptians, LBY/LBT by the Phoenicians, and Λίβυοι by the ancient Greeks).They are white to olive-skinned Caucasoid people and the first modern humans to settle in North Africa. The Maghrebis are also descended from Phoenicians (Carthaginians), Romans (Roman Africa), Hellenic origin (Byzantine Africa), Egyptian and Levantine origin (Muslim conquest of North Africa), Iberians (native Andalusians fleeing the Reconquista, or Portuguese), of Italian origin (migration in Tunisia, Libya and Algeria), of Turkic, Balkan or other Mediterranean origin (such as descendant of Janissaries for Tunisia, Libya and Algeria) as well as of Sub-Saharan origin ( Trans-Saharan trade).
Maghrebis were known in the medieval times as Moors. "The Moors were simply Maghrebis, inhabitants of the Greater Maghreb, the western part of the Islamic world, that extends from Spain to Tunisia, and represents a homogeneous cultural entity" It is believed that the term Moor is derived from Mauri, the name given by the Romans to the inhabitant of Northern Morocco and Algeria, which itself is derives from the Punic word Mahurim "Westerners" for the people living in the west of Ancient Carthage.