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.

Sunnis form the majority at 67% with non-denominational Muslims being the second largest group of Muslims at 30%. There are an estimated 3,000 to 8,000 Shia Muslims, most of them foreign residents from Lebanon or Iraq, but also a few citizen converts.

Followers of several Sufi Muslim orders across the Maghreb and West Africa undertake joint annual pilgrimages to the country.

Christians are estimated at 1% (~380,000) of the Moroccan population. The predominantly Roman 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 citizens 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, are estimated between 8,000–40,000.

The most recent estimates put the size of the 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 persons. The Baha’i community, located in urban areas, numbers 350 to 400 persons.