Legends of Africa wealth gained from trade and its possession of a powerful cavalry. The Oyo Empire was the most politically important state in the region from the mid-17th to the late 18th century, holding sway not only over other Yoruba kingdoms in modern-day Nigeria, Benin, and Togo, but also over other African kingdoms, most notable being the Fon Dahomey (in present-day Benin). The mythical origins of the Oyo Empire lie with Oranyan (also known as Oranmiyan), the second prince of the Yoruba Kingdom of Ile-Ife. Oranyan made an agreement with his brother to launch a punitive raid on their northern neighbors for
Oyo Empire preventing the Alaafin from being an autocrat; the Oyo Mesi compelled many Afaafin to commit suicide during the 17th and 18th centuries. The head of the council of Oyo Mesi, the Bashorun, consulted the Ifa oracle for approval from the gods. New alaafins of Oyo were seen as appointed by the gods. They were regarded as "Ekeji Orisa," meaning "companion of the gods." The Bashorun had final say on the nomination of the new Alaafin, his power rivaling the king himself. For example, the Bashorun orchestrated many religious festivals; in addition to being commander-in-chief of the army, which gave him