 In 1730 the war with Oyo ended and Dahomey retained domestic control but became a tributary of the Oyo empire.By the end of Agaja's reign, the Kingdom of Dahomey occupied significant area, particularly the crucial coastal slave trade cities.At the same time, Agaja created much of the administrative apparatus of the kingdom and instituted the key ceremony of the Annual Customs, or "Xwetanu" in Fon.