History of the Yoruba people military capital of Ilorin, and then sacked and destroyed Ọyọ-Ile, the royal seat of the Ọyọ Empire. Following this, Ọyọ-Ile was abandoned, and the Ọyọ retreated south to the present city of Oyo (formerly known as "Ago d'Oyo", or "Oyo Atiba") in a forested region where the cavalry of the Sokoto Caliphate was less effective. Further attempts by the Sokoto Caliphate to expand southwards were checked by the Yoruba who had rallied in defence under the military leadership of the ascendant Ibadan clan, which rose from the old Oyo Empire, and of the Ijebu city-states. However, the Oyo hegemony had
Islam in Nigeria built in Ọyọ-Ile in AD 1550 although, there were no Yoruba Muslims, the Mosque only served the spiritual needs of foreign Muslims living in Ọyọ. Progressively, Islam came to Yoruba land, and Muslims started building Mosques: Iwo town led, its first Mosque built in 1655 followed by Iṣẹyin, in 1760; Lagos, 1774; Ṣaki, 1790; and Oṣogbo, 1889. In time, Islam spread to other towns like Oyo (the first Oyo convert was Solagberu), Ibadan, Abẹokuta, Ijẹbu-Ode, Ikirun, and Ẹdẹ before the 18th century Sokoto jihad. Several factors contributed to the rise of Islam in Yoruba land by mid 19th century. Before