Napoléon invaded Portugal in 1807 as part of his initiative to close ports that the British used for trade. He then invaded Bourbon-ruled Spain, wishing in large measure to spread the ideals of the Revolution. Unlike the Italians, the fiercely patriotic Spaniards did not take to French rule. Resistance remained strong and occupied the attention of 300,000 troops that Napoléon sorely needed elsewhere.