Demographic features of the population of Morocco include population density, ethnicity, education level, health of the populace, economic status, religious affiliations and other aspects of the population. The population of Morocco in 2021 is 37.271 million.
Moroccans are primarily of Arab and Berber origin. Socially, there are two contrasting groups of Moroccans: those living in the cities and those in the rural areas. Among the rural, several classes have formed such as landowners, peasants, and tenant farmers. Moroccans live mainly in the north and west portions of Morocco. However, they prefer living in the more fertile regions near the Mediterranean Sea.
Between the Nile and the Red Sea were living Arab tribes expelled from Arabia for their turbulence, Banu Hilal and Banu Sulaym, who often plundered farming areas in the Nile Valley. According to Ibn Khaldun, whole tribes set off with women, children, ancestors, animals and camping equipment. These tribes, along with others, who mass arrived in the region of Morocco in colossal numbers around the 12th-13th centuries, and later the Ma'qil in the 14th century, contributed to a more extensive ethnic, cultural, and linguistic Arabization of Morocco over time, especially beyond the major urban centres and the northern regions well into the countryside. The descendants of the original Arab settlers who continue to speak Arabic as a first language currently form the single largest population group in North Africa.
About 99% of Moroccans are considered to be Sunni Muslims religiously or culturally. The numbers of the Jewish minority has decreased significantly since the creation of the State of Israel in 1948. Today there are 2,500 Moroccan Jews inside the country. Thousands of Moroccan Jews living in Europe, Israel and North America visit the country regularly. There is a small but apparently growing minority of Moroccan Christians made of local Moroccan converts (not Europeans). In 2014, most of the 86,206 foreign residents are French people, Spaniards, Algerians and sub-Saharan African students.