Algeria
Islam is the predominant religion in Algeria, with its adherents, mostly Sunnis, accounting for 99% of the population according to a 2012 CIA World Factbook estimate, and 97.9% according to Pew Research in 2010. There are about 150,000 Ibadis in the M'zab Valley in the region of Ghardaia.
French Algeria
The French faced other opposition as well in the area. The superior of a religious brotherhood, Muhyi ad Din, who had spent time in Ottoman jails for opposing the bey's rule, launched attacks against the French and their makhzen allies at Oran in 1832. In the same year, jihad was declared and to lead it tribal elders chose Muhyi ad Din's son, twenty-five-year-old Abd al Qadir. Abd al Qadir, who was recognized as Amir al-Muminin (commander of the faithful), quickly gained the support of tribes throughout Algeria. A devout and austere marabout, he was also a cunning political leader and a resourceful warrior. From his capital in Tlemcen, Abd al Qadir set about building a territorial Muslim state based on the communities of the interior but drawing its strength from the tribes and religious brotherhoods. By 1839, he controlled more than two-thirds of Algeria. His government maintained an army and a bureaucracy, collected taxes, supported education, undertook public works, and established agricultural and manufacturing cooperatives to stimulate economic activity.