Out of the confusion came a handful of new states, each with its own idea of how to govern. Ibadan grew from a war camp into a city that ran as a republic. Abeokuta was a federation of Egba towns with a council of chiefs and a leader (the Olorogun), the best known of the early ones being Sodeke. Ijaye, under the warrior Kurunmi, became a well-ordered military city. A new Oyo was founded farther south, at Ago-Oja, by Atiba, who was crowned Alaafin there; the old town was abandoned. And Ilorin, now an emirate, held the northern frontier.
Titles from the old empire were reused. Oluyole of Ibadan was made Basorun and Kurunmi of Ijaye Kakanfo, the two highest positions beneath the Alaafin, with the aim of building a revamped empire that would one day drive the Fulani out of Ilorin. In practice real power lay with the armies.
In 1840 Ibadan beat Ilorin at Osogbo, and the southward advance of the emirate was stopped. Ilorin then turned to raiding in Ekiti and Ijesa country, where its horsemen were ambushed in the forests in what is remembered as the Pole War.