Menu
People · c. 1796-1824

Afonja Lost Ilorin to His Own Allies

Image: Emir Palace Ilorin Entrance.jpg — MubarakahSidiq, CC0 · source

KwaraIlorin WestYoruba, Fulani, HausaPeople3 sources

An Oyo commander built his independence with Muslim allies, then died as their struggle for Ilorin turned against him.

WhereKwara
Whenc. 1796-1824
PeopleYoruba, Fulani, Hausa
Read4 min

01The trap at Iwere

In the 1790s the most feared soldier in the Oyo Empire was a man called Afonja. He held the title Aare-Ona-Kakanfo, the field marshal of the empire, the general who led its armies in the field. Where he came from is less clear. Samuel Johnson, the Yoruba historian, gives more than one version. In one he is an Ilorin man with royal blood through his mother. In another his mother was a slave born in the palace, and he grew up among the Alaafin's children at Oyo-Ile. The king of the time, Alaafin Aole, once called him his own kith and kin.

That did not make them friends. Aole was afraid of him, and he set a trap. A new Alaafin was expected to name an enemy town for his army to attack, and Aole pointed Afonja at Iwere, a town said to be impossible to take. The idea was simple. Afonja would fail, and an Oyo general who failed was expected to kill himself.

Someone told Afonja about the plot before the army got there. He turned around. Along with other angry chiefs, he marched back on the capital, killed the king's loyal party, and surrounded Oyo-Ile. In the end Aole was forced to take his own life. Wikipedia's account adds that the chiefs sent him an empty covered calabash, the old sign that a king had been rejected.

That was about 1796. Afonja then settled at Ilorin, a small place on the northern edge of the empire, and refused to recognise the next kings Oyo put on the throne. Many history books say he rebelled in 1817. The Ilorin historian Ismail Salihu, writing in 2024, argues the real break came around 1797, and that for the next twenty years nobody in Oyo-Ile was strong enough to do anything about it.

02An army of runaways

Someone did try once. Ojo Agunbambaru, the son of a powerful Oyo chief who had been killed years before, came back from exile with a Bariba army to punish the rebels. He nearly won. Then, in Johnson's telling, the Onikoyi, one of his allies and secretly Afonja's friend, walked off the field with his men, and the attack fell apart. Ilorin's own accounts tell it differently. They give the credit to the prayers of a Fulani cleric named Alimi and the fighters who came with him.

After that win, people started pouring into Ilorin. Many were Hausa and other northerners who had been slaves in Oyo, and a lot of them were trained horsemen and grooms who had worked in the Oyo cavalry. Afonja promised them freedom, a place in his army and a share of whatever they captured. They became his Jama'a, his militia. Close by, at Oke-Suna, a Muslim chief and scholar named Solagberu led his own community, and he was Afonja's friend too. With them, Ilorin grew from a small town into a real power.

Around 1817 Afonja invited Alimi to come and live in Ilorin. Alimi made prayers and charms for the warriors. According to Johnson, he also tried to rein in the Jama'a, who had begun to raid and rob with no one stopping them. People warned Afonja about them, and he brushed it off.

Then the balance shifted. Alimi's sons, Abdul-Salami and Shitta, came down from the north, and Fulani families driven out of Nupeland came to shelter under Alimi. When Alimi died around 1823, the Muslims of Ilorin chose Abdul-Salami as their emir. Afonja could see that the town he had built was slipping out of his hands.

03Nobody agrees how he died

Around 1824 it came to a fight. What happened next is told in so many ways that Salihu lists them one after another. Johnson says the Jama'a, led by Alimi's people, surrounded Afonja's house, shot him with arrows until he fell, and burned his body. Bishop Samuel Ajayi Crowther, writing in 1852, said the people of Ilorin caught him and burned him in public as a traitor. One Ilorin account says he was ambushed on the way to a mosque. Another says he was killed for refusing to become a Muslim.

His own descendants told it another way. In a 1936 petition, the heads of his family said Afonja and his brother took their own lives during a surprise attack, in grief at the death of his eldest son. They also said the body burned in public was not Afonja's at all, but Solagberu's.

There is also the story of the masquerade. One of Afonja's egungun followers broke into Alimi's compound, Muslims hit back, and the quarrel turned into a riot that ended in Afonja's death. Wikipedia's history of the Ilorin emirate tells this version too.

What is not in dispute is who came out on top. Abdul-Salami became the first Emir of Ilorin, in a town now part of the Sokoto Caliphate, and his family has held the throne ever since. Yet Afonja's name never left the place. People still speak of the city as Ilorin Afonja, Afonja's Ilorin, in the same breath as Ilorin Garin Alimi, Alimi's town. And the head of his family, who carries the title Magaji Aare, still sits with the chiefs who choose each new emir.

Fact or legend?
FactAfonja was the Aare-Ona-Kakanfo of Oyo. Alaafin Aole tried to send him against Iwere, a campaign meant to fail; the plot leaked, and Afonja and other chiefs turned on Aole, who was forced to take his own life around 1796 (Salihu citing Johnson and Crowther; Wikipedia).
FactOjo Agunbambaru's attack on Afonja failed after the Onikoyi switched sides, by Johnson's account (Salihu, Wikipedia). Local Ilorin accounts credit Alimi's prayers and followers instead (Salihu).
FactRunaway Hausa and other northern slaves, many of them skilled horsemen, became Afonja's Jama'a; Solagberu led the Muslim settlement at Oke-Suna; Alimi was a Fulani cleric (Salihu, Wikipedia).
DisputedHis break with Oyo is often dated to 1817. Salihu, following Law, puts it around 1797 and treats 1817 as the year he invited Alimi to settle. Wikipedia's article on Afonja gives his death as c.1813; Salihu and the emirate's list of rulers point to about 1824.
DisputedAccounts of his death differ: shot with arrows and burned (Johnson), publicly burned by Ilorin people (Crowther), suicide with his brother (a 1936 petition by his descendants), ambushed on the way to a mosque, or killed in a riot set off by one of his masqueraders (Salihu; the masquerade version also in Wikipedia's Ilorin Emirate).
Editor noteThat the Magaji Aare, head of Afonja's family, still takes part in choosing the emir is from Wikipedia's Ilorin Emirate article; Salihu confirms the title and that its holder spoke for Afonja's family in 1936.
FactThe image shows the modern emir's palace entrance, not a surviving scene from Afonja's lifetime.
Sources
  1. Ismail O. Salihu, Aare-Ona-Kakanfo Afonja, c.1796-c.1824 (Journal of African Studies and Research Forum, 2024)
  2. Wikipedia: Afonja
  3. Wikipedia: Ilorin Emirate