During the 1670s and 1680s, the English Royal Navy succeeded in permanently ending the threat to English shipping from the Barbary corsairs, inflicting defeats which induced the Barbary states to conclude long-lasting peace treaties. Following the Glorious Revolution of 1688, England joined the European coalition against Louis XIV in the War of the Grand Alliance (1688–1697). Louis' recent shipbuilding programme had given France the largest navy in Europe. A combined Anglo-Dutch fleet was defeated at Beachy Head (1690), but victory at Barfleur-La Hogue (1692) was a turning-point, marking the end of France's brief pre-eminence at sea and the beginning of an enduring English, later British, supremacy. In 1683 the "Victualling Board" was set up which fixed the ration scales. In 1655 Blake routed the Barbary pirates and started a campaign against the Spanish in the Caribbean, capturing Jamaica.