Joining France against Britain near the end of the Seven Years' War (1756–63), the navy failed to prevent the British capturing Havana, during which the Spanish squadron present was also captured. In the American War of Independence (1775–83), the Spanish navy was essential to the establishment, in combination with the French and Dutch navies, of a numerical advantage that stretched British naval resources. They played a vital role, along with the French and Dutch, in maintaining military supplies to the American rebels. The navy also played a key role in the Spanish army led operations that defeated the British in Florida. The bulk of the purely naval combat on the allied side fell to the French navy, although Spain achieved lucrative successes with the capture of two great British convoys meant for the resupply of British forces and loyalists in North America. Joint operations with France resulted in the capture of Menorca but failed in the siege of Gibraltar.