The origins of the Oyo Empire lie with Oranyan (also known as Oranmiyan), the last prince of the Yoruba Kingdom of Ile-Ife (Ife).
The chief instructed Oranyan to follow the snake until it stopped somewhere for seven days and disappeared into the ground.