on June 6, 1801. As part of the peace settlement, Portugal recovered all of the strongholds previously conquered by the Spanish, with the exception of Olivença and other territories on the eastern margin of the Guadiana, and a prohibition of contraband was enforced near the border between the two countries. The treaty was ratified by the Prince-Regent on 14 June, while the King of Spain promulgated the treaty on 21 June. A special convention (i.e., the Treaty of Madrid) on 29 September 1801 made additions to that of Badajoz whereby Portugal was forced to pay France an indemnity of 20 million francs. This treaty was initially rejected by Napoleon, who wanted the partition of Portugal, but accepted once he concluded a peace with Great Britain at Amiens. Napoleonic invasions In 1806, after Napoleon's victory over the Prussians, he considered the problem of the resistance of the English, who had broken the peace in 1803 to challenge the Continental system imposed by the French, and realized that the situation in Portugal impeded his plan for reform in Europe. Again, Portuguese ports were ordered closed to British shipping; On 27 October 1807, France and Spain signed the Treaty of Fontainebleau which would partition Portugal. In this pact, Northern Lusitania, a territory between the Minho and Douro rivers, would be a principality governed by the sovereign of the extinct Kingdom of Etruria (then Maria Luisa, daughter of Charles IV of Spain). The Algarve and all Portuguese territory located south of the Tagus would be governed by Manuel de Godoy, in compensation for his role in bringing the Spanish to align with France. The rest of Portugal, the area between the Douro and the Tagus, a strategic region because of its ports, would be administered by the central government in France until a general peace. Its colonial possessions, including Brazil, would be divided between Spain and France. On either 19 or 20 November 1807, a French battalion commanded by General Jean-Andoche Junot entered Portugal. Napoleon had ordered its invasion and occupation. On 27 November, the Prince Regent, the Queen and the entire royal family, accompanied by much of the nobility as well as their servants, boarded fifteen Portuguese ships gathered in the Tagus with an escort of several English ships, as planned the year before when the British ambassador advised the prince that the Portuguese Crown should be transferred to Brazil. Approximately 10,000 people,