Spain remained an ally of France and supported the Continental Blockade until the British naval victory at Trafalgar, when Spain became allied with Britain. However, after Napoleon's victory over Prussia in 1807, Godoy again steered Spain back onto the French side. This switching of alliances devalued Charles's position as a trustworthy ally, increasing Godoy's unpopularity, and strengthening the "fernandistas" (supporters of Crown Prince Ferdinand), who favoured an alliance with the United Kingdom.