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
Oyo Empire orders from Oyo were strictly followed, and access to local markets was provided to Oyo merchants. The Oyo often demanded tribute in slaves. The tributary sometimes made war on other peoples to capture slaves for this. Oyo punished disobedience by wholesale slaughter of the community, as it accomplished in Allada in 1698. The Oyo Empire developed a highly sophisticated political structure to govern its territorial domains. Scholars have not determined how much of this structure existed prior to the Nupe invasion. Some of Oyo's institutions are clearly derivative of early accomplishments in Ife. After reemerging from exile in the early