Religious composition
Morocco
In 2020, there were 36,470,000 Muslims in Morocco, 99.7% of the population. Islam was the largest religion.
How many Muslims live in Morocco?
In 2020, there were 36,470,000 Muslims in Morocco, 99.7% of the population. By Muslim share, Morocco ranks 5 of 57 countries and territories in Africa; by number of Muslims, it ranks 6. Of the 200 countries and territories in the data, 13 had a larger Muslim population in 2020.
What is the main religion in Morocco?
Islam was the largest religion.
- Islam36,470,00099.7%
- Religiously unaffiliated50,0000.1%
- Other religions40,0000.1%
- Christianity30,0000.1%
- Hinduism< 10,000—
- Buddhism< 10,000—
- Judaism< 10,000—
Questions about Islam
How did religion in Morocco change between 2010 and 2020?
Between 2010 and 2020, the population grew from 32,460,000 to 36,590,000 (+12.7%). Muslims numbered 36,470,000 in 2020, compared with 32,360,000 in 2010 (+12.7%). Their share of the population changed by 0.0 percentage points.
| Group | 2010 | 2020 | Change |
|---|---|---|---|
| Islam | 32,360,000 | 36,470,000 | +4,110,000 |
| Religiously unaffiliated | 40,000 | 50,000 | +10,000 |
| Other religions | 30,000 | 40,000 | +10,000 |
| Christianity | 30,000 | 30,000 | 0 |
| Hinduism | < 10,000 | < 10,000 | — |
| Buddhism | < 10,000 | < 10,000 | — |
| Judaism | < 10,000 | < 10,000 | — |
| Total | 32,460,000 | 36,590,000 | +4,130,000 |
Source: Pew Research Center (2025), processed by Our World in Data (CC BY 4.0). Figures are rounded to the nearest 10,000; “< 10,000” means fewer than 10,000 people.
Country and regional figures come from Pew Research Center. Pew's “Religiously unaffiliated” group covers everyone who does not identify with a religion, including many people in China who follow folk traditions: 24.2% of the world in 2020. The world counter uses the World Christian Database, whose “Non-religious” group counts only agnostics and atheists (11.0% of the world in 2026). The two figures therefore cannot be added up or compared directly.
Similar countries in Africa
The countries in Africa closest to Morocco by Muslim share, 2020.
| Country | Muslim share, 2020 | Largest group |
|---|---|---|
| Comoros | 100.0% | Islam |
| Western Sahara | 100.0% | Islam |
| Mayotte | 100.0% | Islam |
| Somalia | 99.9% | Islam |
| Morocco | 99.7% | Islam |
| Mauritania | 99.3% | Islam |
| Tunisia | 99.3% | Islam |
Religion by country
Method and sources
Pew Research Center (2025) – processed by Our World in Data, “Number of people by religion”, CC BY 4.0.
Pew Research Center bears no responsibility for the analyses or interpretations of the data presented here, and did not review or approve this compilation.
Use this data
You may reuse the figures on this page freely, including commercially, under the CC BY 4.0 licence. Please credit “Harezmi (harezmi.dev)” and link to this page.
Suggested citation:
Harezmi (2026). Morocco religion & Muslim population (2020): Islam 99.7%, Religiously unaffiliated 0.1%. harezmi.dev. https://harezmi.dev/country/mar/ — Data: Pew Research Center (2025), processed by Our World in Data. CC BY 4.0.
Spot an error?
Report an error
If something on this page is wrong or unclear, tell us. We check every report against the original source.