structural:scholar_edition, structural:summarization, structural:reformatting, stylistic:style_transfer
Fulani Jihad

Usman dan Fodio, an Islamic scholar and an urbanized Fulani, had been actively educating and preaching in the city of Gobir with the approval and support of the Hausa leadership of the city. However, when Yunfa, a former student of dan Fodio, became the sultan of Gobir, he restricted dan Fodio's activities, eventually forcing him into exile in Gudu. A large number of people left Gobir to join dan Fodio, who also began to gather new supporters from other regions. Feeling threatened by his former teacher, Sultan Yunfa declared war on dan Fodio on February 21, 1804.

Usman dan Fodio was elected as the "Commander of the Faithful" (Amir al-Mu'minin) by his followers, marking the beginning of the Sokoto state. Usman dan Fodio then created a number of flag bearers amongst those following him, creating an early political structure of the empire. Declaring a jihad against the Hausa kings, dan Fodio rallied his primarily Fulani "warrior-scholars" against Gobir. Despite early losses at the Battle of Tsuntua and elsewhere, the forces of dan Fodio began taking over some key cities starting in 1805. The Fulani used guerrilla warfare to turn the conflict in their favor, and gathered support from the civilian population, which had come to resent the despotic rule and high taxes of the Hausa kings. Even some non-Muslim Fulani started to support dan Fodio. The war lasted from 1804 until 1808 and resulted in thousands of deaths. The forces of dan Fodio were able to capture the states of Katsina and Daura, the important kingdom of Kano in 1807, and finally conquered Gobir in 1809. In the same year, Muhammed Bello, the son of dan Fodio, founded the city of Sokoto, which became the capital of the Sokoto state.

The jihad had created "a new slaving frontier on the basis of rejuvenated Islam." By 1900, the Sokoto state had "at least 1 million and perhaps as many as 2.5 million slaves", second only to the United States (which had 4 million in 1860) in size among all modern slave societies.