Andalusia in Málaga and Seville." Following the Second Rebellion of the Alpujarras in 1568-1571, the Moorish population—that is, unconverted Moriscos—were expelled from Kingdom of Castile (and Aragon). However, by order of the Spanish crown, two Moorish families were required to remain in each village in order to demonstrate to the new inhabitants, introduced from northern Spain, the workings of the terracing and irrigation systems on which the district's agriculture depends. In 1810–12 the people strongly resisted the French occupation during the Peninsular War (part of the Napoleonic Wars). Andalusia profited from the Spanish overseas empire, although much trade and finance eventually
War of the Oranges (Eastern Missions) and the Peninsula (Olivença); the latter remaining an issue with the Portuguese government (see Question of Olivença). War of the Oranges The War of the Oranges (; ; ) was a brief conflict in 1801 in which Spanish forces, instigated by the government of France, and ultimately supported by the French military, invaded Portugal. It was a precursor to the Peninsular Wars, resulting in the Treaty of Badajoz, the loss of Portuguese territory, in particular Olivenza, as well as ultimately setting the stage for the complete invasion of the Iberian Peninsula by French forces. In 1800, First Consul