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 first oba (king) of Oyo, was succeeded by Oba Ajaka, Alaafin of Oyo. Ajaka was deposed, because he lacked Yoruba military virtue and allowed his sub-chiefs too much independence. Leadership was then conferred upon Ajaka's brother, Shango, who was later defined as the deity of thunder and lightning. Ajaka was restored after Sango's death. Ajaka returned to the throne thoroughly more warlike and oppressive. His successor, Kori, managed to conquer the rest of what later historians would refer to as metropolitan Oyo. The heart of metropolitan Oyo was its capital at Oyo-Ile (also known as "Oyo Katunga" or "Old Oyo"