After the 1730 attack by the Oyo Empire, Agaja's forces were particularly depleted. Huffon and the deposed royal family of Whydah, with support from the British and the French, attempted to reconquer the city. With depleted forces, Agaja created a special unit of women dressed in war armor to assemble at the back of his remaining army to make his forces look larger. The ploy worked as the Whydah forces saw a huge force marching toward the city and fled before any fighting happened. After this attack, Agaja asked the Portuguese leader in the area to negotiate a peace agreement between Dahomey and Oyo. The agreement set the boundaries between Oyo and Dahomey at the Ouémé River and made Dahomey a tributary state of Oyo, a status which would remain until 1832. As a guarantee, Agaja had to send a son, Tegbessou, to Oyo.