For centuries, the Oyo Empire stood as one of the most powerful kingdoms in West Africa, admired for its military strength, political organisation, and cultural influence. Yet, like many great empires in history, its decline began from within. Among the figures most closely associated with this turning point was Afonja of Ilorin, a renowned Yoruba war leader whose rebellion reshaped the political landscape of northern Yorubaland.
Afonja remains one of the most debated personalities in Yoruba history. To some, he was a courageous military commander who challenged an increasingly troubled imperial government. To others, his decisions unintentionally weakened the Oyo Empire and accelerated its collapse. Regardless of perspective, his actions had lasting consequences that extended far beyond Ilorin and continue to influence discussions about Yoruba history today.
Although oral traditions and historical accounts sometimes differ on specific details, scholars broadly agree that Afonja’s rebellion marked a turning point in the political history of Yorubaland.
This article explores the life of Afonja, his rise to prominence, his conflict with the Oyo Empire, and the role he played in one of the most significant political transformations in pre-colonial Nigeria.
Table of Contents
Who Was Afonja?
Afonja was a prominent Yoruba military commander and the Aare Ona Kakanfo of the Oyo Empire during the late 18th and early 19th centuries. As the empire’s highest-ranking military officer, he commanded its armies and defended its frontiers against external threats.
His base of operations was Ilorin, an important frontier town located on the northern edge of the Oyo Empire. Because Ilorin bordered regions inhabited by different ethnic groups and emerging Islamic states, it occupied a strategic military position.
As Aare Ona Kakanfo, Afonja possessed considerable military authority and enjoyed enormous respect among soldiers and local leaders. However, his position also placed him at the centre of growing political tensions within the empire.
Readers interested in learning more about the responsibilities of this important military office can also explore our detailed guide on Aare Ona Kakanfo of Yorubaland: History, Meaning and List of Past Holders
Understanding the Title of Aare Ona Kakanfo

The title of Aare Ona Kakanfo was one of the most prestigious military positions in Yoruba history.
Unlike ordinary generals, the Aare Ona Kakanfo served as the supreme field commander of the Oyo Empire’s armed forces. Tradition required the holder of the office to remain outside the capital while protecting the empire’s frontiers and expanding its territory when necessary.
The position demanded exceptional courage, military skill, and unwavering loyalty to the Alaafin of Oyo.
By the time Afonja assumed this office, however, political divisions within the empire had begun to intensify, making his responsibilities increasingly difficult.
The Political Climate Before the Rebellion
To understand Afonja’s rebellion, it is necessary to examine the political situation within the Oyo Empire.
Although the empire remained influential, internal disputes between the Alaafin, senior chiefs, provincial leaders, and military commanders had weakened central authority. Competition for political power created mistrust among various factions.
These tensions affected the relationship between Afonja and the imperial government.
Historical accounts suggest that disagreements emerged over military campaigns and the authority of the Alaafin. Some traditions state that Afonja became dissatisfied after receiving orders that he believed undermined his authority or placed his forces at unnecessary risk.
Whether viewed as political resistance or personal ambition, the conflict gradually escalated into open rebellion.
Timeline of Key Events
- Late 18th Century: Afonja serves as Aare Ona Kakanfo of the Oyo Empire.
- Growing Political Tensions: Disputes emerge between Afonja and the Alaafin of Oyo.
- Rebellion Begins: Afonja asserts greater independence in Ilorin.
- Alliance with Shehu Alimi: He seeks military support from Alimi and his followers.
- Loss of Control: Alimi’s influence grows within Ilorin.
- Afonja’s Death: Afonja is killed during the political upheaval.
- Aftermath: Ilorin comes under Fulani leadership, accelerating the decline of the Oyo Empire.
Why Did Afonja Rebel Against the Oyo Empire?
The reasons behind Afonja’s rebellion remain the subject of historical debate.
Some historians argue that he opposed what he considered excessive interference from the imperial court. Others believe personal political ambitions contributed to his decision.
According to Yoruba oral traditions, one major point of conflict involved military orders issued by the Alaafin. When Afonja reportedly refused to carry out certain commands, relations between the military commander and the central government deteriorated rapidly.
Rather than submit completely to imperial authority, Afonja established greater independence in Ilorin.
This decision marked the beginning of one of the most significant internal crises in Oyo history.
Afonja’s Alliance with Alimi

One of the most important developments during the rebellion was Afonja’s alliance with the Islamic scholar Shehu Alimi.
Seeking additional military support, Afonja welcomed Alimi and his followers into Ilorin. The alliance initially strengthened Afonja’s position and helped him resist forces loyal to the Oyo Empire.
However, the partnership produced consequences that neither side may have fully anticipated.
As Alimi’s influence grew, new political and religious dynamics emerged within Ilorin. Over time, these changes transformed the city’s leadership and reduced Afonja’s control over events.
The alliance ultimately altered the future of Ilorin and contributed to broader political changes across the region.
Many historians consider this alliance one of the defining moments in the history of Ilorin. While Afonja sought military support to strengthen his position, the growing influence of Shehu Alimi and his followers eventually shifted the balance of power in ways that neither the Oyo Empire nor Afonja himself could fully control.
The Fall of Afonja
Ironically, the rebellion that helped weaken the Oyo Empire also led to Afonja’s own downfall.
Historical traditions indicate that growing tensions developed between Afonja and elements within the coalition that had supported his rebellion. Eventually, he lost political control and was killed.
Following his death, Ilorin increasingly came under Fulani leadership and later became associated with the Sokoto Caliphate.
This transformation permanently changed the political identity of the city and reduced Yoruba influence over the area.
How Afonja Contributed to the Fall of the Oyo Empire

Although Afonja did not single-handedly destroy the Oyo Empire, his rebellion significantly accelerated its decline.
The empire had already been weakened by political rivalries, administrative challenges, and military pressures.
Afonja’s revolt further undermined central authority by encouraging fragmentation within the empire. As Ilorin broke away, Oyo lost one of its most important frontier territories.
The resulting instability made it more difficult for the empire to defend itself against external threats and maintain control over subordinate states.
Many historians therefore regard Afonja as an important figure in the final stages of Oyo’s collapse, even though broader structural problems had already begun to weaken the empire.
Readers who would like a broader understanding of these events can also read our comprehensive guide on The Oyo Empire: A Complete History of Its Rise, Power and Fall.
Different Historical Perspectives on Afonja
Afonja remains a complex historical figure.
Some historians portray him as a military commander who resisted a weakening imperial government and attempted to protect his authority.
Others argue that his rebellion unintentionally opened the door to political developments that permanently altered the balance of power in Yorubaland.
To better understand the wider political environment in which these events unfolded, readers can also explore our guide to The Oyo Empire: A Complete History of Its Rise, Power and Fall, which examines the empire’s rise, administration, and eventual collapse.
Yoruba oral traditions also present varying interpretations depending on regional perspectives and family histories.
These differing viewpoints remind us that history is often shaped by multiple voices and interpretations rather than a single narrative.
Much of what historians know about Afonja comes from a combination of Yoruba oral traditions and written historical works. While some details differ between sources, scholars generally agree on the major events surrounding his rebellion and its impact on the Oyo Empire.
Afonja’s Legacy in Nigerian History
More than two centuries after his death, Afonja continues to occupy an important place in discussions about Nigerian history.
His life illustrates how individual decisions can influence the course of entire kingdoms. It also demonstrates the dangers that internal political divisions can pose to even the strongest states.
Today, historians continue to study Afonja’s actions alongside the broader decline of the Oyo Empire, recognising that the empire’s fall resulted from a combination of internal conflicts, external pressures, and changing political realities.
His story remains an essential chapter in understanding the history of Ilorin, Yorubaland, and Nigeria.
In conclusion, Afonja of Ilorin remains one of the most fascinating and controversial figures in Yoruba history. As Aare Ona Kakanfo, he held one of the highest military offices in the Oyo Empire and commanded immense influence during a critical period in its history.
His rebellion against the imperial government weakened an already fragile empire, while his alliance with Shehu Alimi reshaped the political future of Ilorin. Although historians continue to debate his motives, there is broad agreement that his actions played a significant role in the final decline of one of West Africa’s greatest empires.
Understanding Afonja’s life offers valuable insight into the complex political struggles that transformed Yorubaland during the early nineteenth century and continues to shape historical discussions today.
Frequently Asked Questions About Afonja of Ilorin
Who was Afonja of Ilorin?
Afonja was the Aare Ona Kakanfo, or supreme military commander, of the Oyo Empire. He became one of the most influential figures in Yoruba history because of his rebellion against the empire.
Why did Afonja rebel against the Oyo Empire?
Historians attribute the rebellion to a combination of political disagreements, disputes with the Alaafin, and growing tensions within the empire’s leadership.
Who was Shehu Alimi?
Shehu Alimi was an Islamic scholar whose alliance with Afonja strengthened Ilorin during the rebellion. His followers later became politically influential in the city.
Did Afonja cause the fall of the Oyo Empire?
Afonja did not single-handedly cause the empire’s collapse. However, his rebellion significantly weakened central authority and accelerated the decline of the Oyo Empire.
What was the title of Afonja?
Afonja held the title of Aare Ona Kakanfo, the highest military office in the Oyo Empire.
Why is Afonja still remembered today?
Afonja is remembered because his actions changed the history of Ilorin, influenced the decline of the Oyo Empire, and remain an important subject in Yoruba and Nigerian history.
Was Afonja a hero or a traitor?
Afonja’s legacy remains a subject of historical debate. Some view him as a military leader who challenged a weakening imperial government, while others believe his rebellion contributed to the collapse of the Oyo Empire. Historians generally agree that his actions formed part of a broader political crisis rather than serving as the sole cause of the empire’s fall.
Sources and Further Reading
- Encyclopaedia Britannica – Oyo Empire
- UNESCO General History of Africa
- Samuel Johnson, The History of the Yorubas
- Toyin Falola, A History of Nigeria
- Robin Law, The Oyo Empire, c.1600–1836
- S. A. Akintoye, A History of the Yoruba People





