Having come to terms with the Oyo empire, Agaja sought to militarily destroy other rivals in the region. This started in 1731 with a successful war against the Mahi people to the north of Abomey for supplying the Oyo with food and support during the wars. Attempts by the Portuguese and the Dutch to establish forts in Godomey, which Agaja had conquered in 1724 but whose leader had recently renounced his allegiance to Dahomey, caused a large war in 1732 in which Agaja burned the town and took thousands of people captive. In addition, regular warfare continued between Agaja and the exiled Whydah population under Huffon. In July 1733 Huffon died and a civil war broke out in the exiled community. A defeated prince went to Agaja to ask for assistance and seeing the opportunity, Agaja agreed to support the prince against the leadership of Whydah and allowed the prince to resettle after the war was successful. The other Whydah faction was defeated by Agaja in 1734 with assistance of the French.