The history of Sokoto is closely linked to one of the most significant periods in West African history. The city was founded in 1804 as a military camp by the Islamic scholar and reformer Sheikh Usman dan Fodio. By 1809, his son, Muhammadu Bello, had transformed the settlement into a fully fledged city, which became the capital of the powerful Sokoto Caliphate — one of the largest states in the region during the 19th century. The city was conceived as the spiritual and administrative centre of a new Islamic state that emerged as a result of the Jihad (holy war) of the Fulani people.
Several key factors contributed to the rapid growth and rise of Sokoto. Firstly, its capital status made it the centre of political power, housing the residence of the Caliph — who was not only a secular ruler but also the spiritual leader of the Muslims. Secondly, its strategic geographical location at the confluence of the Sokoto and Rima rivers allowed for the control of important trade routes. This facilitated the city's transformation into a major hub of Trans-Saharan caravan trade, connecting the African interior with the Mediterranean coast.
From the very beginning, Sokoto became not only a political but also a crucial cultural and economic centre in the north of modern-day Nigeria. The city became renowned as a centre of Islamic education and scholarship, attracting scholars, poets, and theologians from across West Africa. The Caliphate's economy relied on agriculture, cattle herding, and developed crafts such as leatherworking and textile production. The socio-economic structure of that time also included a system of slavery, which played a significant role in the economy.