structural:scholar_edition, information:extraction, stylistic:tone
Religion

The religious affiliation in the country was estimated by the Pew Forum in 2010 as 99% Muslim, with all remaining groups accounting for less than 1% of the population. Of those affiliated with Islam, virtually all are Sunni Muslims, with Shia Muslims accounting for less than 0.1%. However, nearly 15% of Moroccans nonetheless describe themselves as non religious according to a 2018 survey conducted by the research network Arab Barometer; the same survey saw nearly 100 percent of respondents identify as Muslims. Another 2021 Arab Barometer survey found that 67.8% of Moroccans identified as religious, 29.1% as somewhat religious, and 3.1% as non religious. The 2015 Gallup International poll reported that 93% of Moroccans considered themselves to be religious.

Prior to independence, Morocco was home to more than 500,000 Christians (mostly of Spanish and French ancestry). Many Christian settlers left to Spain or France after the independence in 1956. The predominantly Catholic and Protestant foreign-resident Christian community consists of approximately 40,000 practising members. Most foreign resident Christians reside in the Casablanca, Tangier, and Rabat urban areas. Various local Christian leaders estimate that between 2005 and 2010 there are 5,000 citizen converted Christians (mostly ethnically Berber) who regularly attend "house" churches and live predominantly in the south. Some local Christian leaders estimate that there may be as many as 8,000 Christian citizens throughout the country, but many reportedly do not meet regularly due to fear of government surveillance and social persecution. The number of the Moroccans who converted to Christianity (most of them secret worshippers) are estimated between 8,000 and 50,000.

The most recent estimates put the size of the historic Casablanca Jewish community at about 2,500, and the Rabat and Marrakesh Jewish communities at about 100 members each. The remainder of the Jewish population is dispersed throughout the country. This population is mostly elderly, with a decreasing number of young people. The Baháʼí Faith community, located in urban areas, numbers 350 to 400 persons.