A royal ordinance in 1845 called for three types of administration in Algeria. In areas where Europeans were a substantial part of the population, elected mayors and councils for self-governing "full exercise" communes (). In the "mixed" communes, where Muslims were a large majority, government was in the hands of appointed and some elected officials, including representatives of the (great chieftains) and a French administrator. The indigenous communes (), remote areas not adequately pacified, remained under the (rule of the sword).