History of Africa usually governed by an "oba" and an "iwarefa", a council of chiefs who advised the "oba." by the 18th century, the Yoruba city-states formed a loose confederation, with the "Oni" of Ife as the head and Ife as the capital. As time went on, the individual city-states became more powerful with their "obas" assuming more powerful spiritual positions and diluting the authority of the "Oni" of Ife. Rivalry became intense among the city-states. The Oyo Empire rose in the 16th century. The Oyo state had been conquered in 1550 by the kingdom of Nupe, which was in possession of cavalry,
Oyo Empire or Oyo-oro). The two most important structures in Oyo-Ile were the 'Afin,' or palace of the Oba, and his market. The palace was at the center of the city close to the Oba's market called 'Oja-Oba'. Around the capital was a tall earthen wall for defense with 17 gates. The importance of the two large structures (the palace and the Oja Oba) signified the importance of the king in Oyo. Oyo had grown into a formidable inland power by the end of the 14th century. For over a century, the Yoruba state had expanded at the expense of its neighbors.