However the British navy failed to establish naval supremacy. While the British captured many American privateers in battles such as the Naval battle off Halifax (1782), many more continued attacks on shipping and settlements until the final months of the war. The Royal Navy struggled to maintain British supply lines, defending convoys from American and French attacks as in the fiercely fought convoy battle, the Naval battle off Cape Breton (1781).