Maria I of Portugal forced Portugal to cede Olivença and other border towns to Spain. (This cession is not recognized by the present Portuguese government, and the country officially considers those territories still to be Portuguese possessions.) On September 29, 1801 John VI signed the Treaty of Madrid (1801), ceding half of Guyana to France, which became French Guiana. The refusal of the Portuguese government to join the French-sponsored Continental Blockade against Britain culminated in the late 1807 Franco-Spanish invasion of Portugal led by General Junot. The ultimate Napoleonic plan for Portugal was to split it into three sections. The northern parts of Portugal,
Portugal I of Portugal signed with the king Fernando IV of Castile (which was represented, when being a minor, by his mother the queen Maria de Molina) the Treaty of Alcañices (1297), which stipulated that Portugal abolished agreed treaties against the kingdom of Castile for supporting the infant Juan de Castilla. This treaty established inter alia the border demarcation between the kingdom of Portugal and the kingdom of Leon, where the disputed town of Olivenza was included. The reigns of Dinis I (Denis I), Afonso IV (Alphons IV), and Pedro I (Peter I) for the most part saw peace with the