 Under the rule of Charles III and his ministers – Leopoldo de Gregorio, Marquis of Esquilache and José Moñino, Count of Floridablanca – the economy improved.Fearing that Britain's victory over France in the Seven Years' War (1756–63) threatened the European balance of power, Spain allied itself to France and invaded Portugal, a British ally, but suffered a series of military defeats and ended up having to cede Florida to the British at the Treaty of Paris (1763) while gaining Louisiana from France.Spain regained Florida with the Treaty of Paris (1783), which ended the American Revolutionary War (1775–83), and gained an improved international standing.