Background : In 1807, France and Spain signed the Treaty of Fontainebleau . They agree on the distribution of Portugal (an ally of England) between the two powers. Controlled the sea by the English and the Portuguese, the only option was for the French troops to cross the peninsula, so numerous Fre