In 1724, Soso died and a contest for the throne in Allada followed. On March 30, 1724, Agaja's army entered Allada in support of the defeated candidate, named Hussar. After a three-day battle Agaja's army killed the king and set the palace on fire. Rather than place Hussar on the throne, though, Agaja drove him out of the city after establishing his own power. Agaja then turned his forces against the other Aja kingdoms. In April 1724, Agaja conquered the town of Godomey and in 1726 the King of Gomè transferred his allegiance from the King of Whydah to Agaja.