This treaty was soon to lead to Spain's involvement in the War of the Third Coalition with Spanish and French forces against the Portuguese and English, which culminated in the English naval victory at the Battle of Trafalgar. This defeat made many enemies at court for Godoy, among them the son of Charles IV, Ferdinand Prince of Asturias and Crown Prince of Spain (later King Ferdinand VII).