The British also attacked Aguadilla and Punta Salinas. They were defeated by Colonel Conti and the members of the militia in Aguadilla, and the British troops that had landed on the island were taken prisoner. The British retreated on April 30 to their ships and on May 2 set sail northward. Because of the defeat given to the British forces, governor Ramon de Castro petitioned Spanish King Charles IV for recognition for the victors; he was promoted to field marshal and several others were promoted and given pay raises. The British persisted in invading Puerto Rico, after Abercromby's defeat, with unsuccessful skirmishes on the coastal towns of Aguadilla (December 1797), Ponce, Cabo Rojo, and Mayagüez. This continued to occur until 1802 when the Treaty of Amiens ended the War of the Second Coalition between European powers and Revolutionary France.