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
Andalusia the Spanish government to Andalusia with the enactment of the Statute of Autonomy. Thus, the Andalusian Health Service ("Servicio Andaluz de Salud") currently manages almost all public health resources of the Community, with such exceptions as health resources for prisoners and members of the military, which remain under central administration. According to the Outreach Program for Science in Andalusia, Andalusia contributes 14 percent of Spain's scientific production behind only Madrid and Catalonia among the autonomous communities, even though regional investment in research and development (R&D) as a proportion of GDP is below the national average. The lack of research capacity