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
Name of Andalusia to refer those territories still under the Moorish rule until then, and generally south of Castilla Nueva and Valencia, and corresponding with the former Roman province hitherto called Baetica in Latin sources. This was a Castilianization of "Al-Andalusiya", the adjectival form of the Arabic word "al-Andalus". The name "Andalusia" or "Vandalusia" is traditionally believed to be derived from "Vandal", the Germanic tribe that briefly colonized parts of Iberia, from 409 to 429. That derivation goes back to the 13th-century "De rebus Hispaniae" but has been viewed critically from the 18th century. Reinhart Dozy (1860) recognized its shortcomings but still accepted