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 moved further south, to Ago d'Oyo. Oba Atiba sought to preserve what remained of Oyo by placing on Ibadan the duty of protecting the capital from the Ilorin in the north and northeast. He also attempted to get the Ijaye to protect Oyo from the west against the Dahomeans. The center of Yoruba power moved further south to Ibadan, a Yoruba war camp settled by Oyo commanders in 1830. Atiba's gambit failed, and Oyo never regained its prominence in the region. Oba Atiba otherwise called Atiba Atobatele died in 1859; His son Adeyemi I and the 3rd Alaafin to rule