Skip to content

Religious composition

Morocco

In 2020, there were 36,470,000 Muslims in Morocco, 99.7% of the population. Islam was the largest religion.

36,470,000
Muslims: 99.7% of the population · 2020

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.

Abrahamic religionsOther religionsReligiously unaffiliated
  1. Islam36,470,00099.7%
  2. Religiously unaffiliated50,0000.1%
  3. Other religions40,0000.1%
  4. Christianity30,0000.1%
  5. Hinduism< 10,000—
  6. Buddhism< 10,000—
  7. 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.

Group20102020Change
Islam32,360,00036,470,000+4,110,000
Religiously unaffiliated40,00050,000+10,000
Other religions30,00040,000+10,000
Christianity30,00030,0000
Hinduism< 10,000< 10,000—
Buddhism< 10,000< 10,000—
Judaism< 10,000< 10,000—
Total32,460,00036,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.

Download the data (CSV)

Similar countries in Africa

The countries in Africa closest to Morocco by Muslim share, 2020.

CountryMuslim share, 2020Largest group
Comoros100.0%Islam
Western Sahara100.0%Islam
Mayotte100.0%Islam
Somalia99.9%Islam
Morocco99.7%Islam
Mauritania99.3%Islam
Tunisia99.3%Islam

Africa →

Religion by country

All countries →

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.

Download the data (CSV)

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.

You don't need to share sensitive information such as your religious beliefs, health or political views. Please write only what we need in order to answer you.