His most significant military victory was over the depleted Oyo empire in 1823. Since 1730, Dahomey had provided yearly tribute to the Oyo empire and some of its economic and military policy was controlled by Oyo interests. However, the Oyo empire had been significantly weakened over the previous 30 years and, with the rise of the Islamic jihad to the north in the Sokoto Caliphate, the empire was unable to secure its tribute from Dahomey. In the early 1820s, Ghezo refused to pay the annual tribute to Oyo. Oyo and Dahomey fought a small war early in the 1820s but violence escalated in 1823 when Oyo sent an ambassador to demand tribute and Ghezo killed him. The Oyo responded by organizing a force made up of the Mahi and other regional forces to attack Dahomey. Ghezo defeated these forces at a battle near Paouingnan. Oyo then sent a larger force that was 4,000 strong, including cavalry, and camped near the village of Kpaloko. Ghezo defeated this force by organizing a night raid which resulted in the death of the Oyo leader, Ajanaku, and caused the Oyo troops to retreat.