But with the success of the jihad led by the Shehu usmau dan Fodiyo (1804–1808) and subsequent victory of the jihadists over the rulers of Hausaland, Sokoto city (headquarters of the caliphate) was built by Muhammad Bello.