In 1701, disputes over territorial and commercial rights led to war between France, Spain, and the Grand Alliance, whose candidate was Charles, younger son of Leopold I, Holy Roman Emperor.
Its capture would confirm Allied naval supremacy in the Western Mediterranean, support the Protestant Camisard revolt in Southern France, divert Bourbon forces from Spain, and win back Villefranche and Savoy.
[6] By April 1707, the Allies had assembled an army of 35,000 but the campaign was delayed when Emperor Joseph detached 10,000 troops in June to capture Naples, allowing France to strengthen its defences around Toulon.
[8] Supported by an Anglo-Dutch squadron under Admiral Cloudesley Shovell, Prince Eugene and Victor Amadeus crossed the Alps via the Col de Tende on 6 July.
[1] The Camisard rising failed to take place, while many of the troops evacuated from Lombardy had been assembled at Riez under the Comte de Médavy, threatening the Allied rear.
Although a naval attack captured Fort St Louis on 18 August, thousands of Allied troops were incapacitated by disease, and Prince Eugene and Victor Amadeus agreed to withdraw on 22nd.
Despite the failed assault on Toulon, the action confirmed British naval control of the Western Mediterranean, while the diversion of resources prevented the Bourbons taking full advantage of their victory at Almansa.