In 1840 a French ordinance had established Senegal as a permanent French possession with a government whose jurisdiction extended over all settlements then effectively under French control, including those in Mauritania. By undertaking the governance of these Mauritanian settlements, French rulers directly challenged Maure claims of sovereignty. Under orders from the new government of Louis Napoleon to end the coutume, to secure the gum arabic trade, and to protect the sedentary populations of the southern bank from Maure raids, Faidherbe conquered the Oualo Kingdom.