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
Four Kingdoms of Andalusia almost exactly the same territory as the present day Spanish autonomous community of Andalusia. The name was used in some contexts at least since the middle of the 18th century. Some works and documents that use the designation are the "Juzgados militares de España y sus Indias" (1792), the "Prontuario de las leyes y decretos del Rey nuestro Señor Don José Napoleon I" (1810), and "Breves tratados de esfera y geografía universal" (1833), among many others. Four Kingdoms of Andalusia The Four Kingdoms of Andalusia (Spanish: "cuatro reinos de Andalucía" or, in 18th-century orthography, "quatro reynos del Andaluzia") was a