The Sokoto Caliphate (Arabic: دولة الخلافة في بلاد السودان, literally: Caliphate in the Lands of Sudan), also known as the Sultanate of Sokoto, was a Sunni Muslim caliphate in West Africa. It was founded by Usman dan Fodio in 1804 during the Fulani jihads after defeating the Hausa Kingdoms in the Fulani War. The boundaries of the caliphate extended to parts of present-day Cameroon, Burkina Faso, Niger, and Nigeria. By 1837, the Caliphate had a population of 10-20 million people, becoming the most populous empire in West Africa. It was dissolved when the British, French, and Germans conquered the area in 1903 and annexed it into the newly established Northern Nigeria Protectorate, Senegambia and Niger and Kamerun (the latter during the Adamawa Wars) respectively.
The caliphate emerged after the Hausa King Yunfa attempted to assassinate Usman Dan Fodio in 1802. To escape persecution, Usman and his followers migrated towards Gudu in February 1804. Usman's followers pledged allegiance to Usman as the Commander of the Faithful (Amīr al-Muʾminīn). By 1808, the Sokoto Caliphate had gained control over Hausaland and several surrounding states. Under the sixth caliph Ahmadu Rufai, the state reached its maximum extent, covering a large swath of West Africa. In 1903, the twelfth and last caliph Attahiru was assassinated by British forces, marking the end of the caliphate.