In the Ashanti-Akim-Akwapim War of 1814–16 the Ashanti defeated the Akim-Akwapim alliance. Local British, Dutch, and Danish authorities all had to come to terms with the Ashanti. By 1817, the Ashanti, who had an army of 20,000, had become the strongest power in West Africa, so the (British) African Company of Merchants signed a treaty of friendship that recognized Ashanti claims to sovereignty over much of the coast. The African Company of Merchants was dissolved in 1821 and the British assumed control of the Gold Coast