Islam entered Nigeria through two major historical streams:
Muslim merchants and scholars from North Africa (Maghreb, Egypt) traversed trade routes linking Kanem-Bornu (Lake Chad), Hausaland (Kano, Katsina, Zaria), and beyond. They brought Islam alongside goods (salt, textiles, books). Ruling elites converted first—Kanem's Mai Umme Jilmi (c. 1085) was an early adopter—creating Muslim courts and centers of learning (e.g., Kano's scholarly tradition).
Usman dan Fodio, a Fulani scholar, launched a jihad from Gobir (modern Sokoto State) against "syncretic" rulers. His forces conquered Hausa states, establishing the Sokoto Caliphate—a vast, theocratic empire enforcing Maliki law, expanding Islam into Nupe, Adamawa, Ilorin, and Yorubaland. The Caliphate's emirs became Islam's primary agents in the region.
By the colonial era, Islam was entrenched in the North. British indirect rule preserved emirate structures. Post-independence, Islam spread southward via trade, migration, and da'wah, becoming Nigeria's roughly co-equal religion (~50% each Muslim/Christian).