Oyo-Ile was one of the younger kingdoms, and its site was one of the hardest. It lay in the north-west corner of Yorubaland, where Yoruba, Nupe and Bariba settlements were mixed together, on old trade routes across the Middle Niger. Both Nupe and Bariba fought with cavalry. Akintoye argues that this adversity, more than any gift of nature, made Oyo into a military power.
Oyo tradition says that the founder was Oranmiyan, one of Oduduwa’s youngest grandsons, who left Ife for the north in the late 12th or early 13th century. A Bariba chief helped him find the site, and he married the daughter of a Nupe chief. Attacks drove the young kingdom to move to Oko, and after Oranmiyan returned to Ife the kingdom paid tribute to Owu and was overrun by Nupe and Bariba groups.
The turn came with Sàngó, Oranmiyan’s son by the Nupe wife, who bought horses from his mother’s people, refused tribute to Owu, defeated its army and brought the capital back to its first site. Tradition says that he died after accidentally burning the palace while demonstrating that he could make lightning, and that his people made him the god of thunder. The cult of Sàngó became the special royal cult of Oyo, whereas in most kingdoms it was Ògún.
Not everyone accepts the Oranmiyan story. Other traditions credit a Nupe hunter or Bariba dynasties, and the historian Robin Law proposed that the link to Ife was invented to give the dynasty Yoruba legitimacy. Akintoye replies that the area was a mixed frontier by about the 11th century, that Oyo-Ile included Nupe and Bariba families from the start, and that this explains the traces of other founders without dismissing the Ife tradition. The question remains open.