During the 18th century, the French began to colonize the nation. Senegalese Muslims took a variety of responses to French colonization. Especially in the countryside, the Senegalese joined Sufi brotherhoods to unite against colonization.