At the end of 1781 Captain Thomas Shirley in the frigate , together with the sloop-of-war "Alligator", sailed for the Dutch Gold Coast with a convoy consisting of a few merchant-vessels and transports. Britain was at war with the Dutch Republic and Shirley launched an unsuccessful attack on 17 February on the Dutch outpost at Elmina, which the Dutch repulsed four days later. "Leander " and Shirley then went on to capture the small Dutch forts at Mouri (Fort Nassau - 20 guns), Kormantine (Courmantyne or Fort Amsterdam - 32 guns), Apam (Fort Lijdzaamheid or Fort Patience - 22 guns), Senya Beraku (Berricoe, Berku, Fort Barracco or Fort Goede Hoop - 18 guns), and Accra (Fort Crèvecœur - 32 guns). Shirley garrisoned those facilities with personnel from Cape Coast Castle.