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
Flamenco José Cadalso. Flamenco has been influenced by and associated with the Romani people in Spain; however, its origin and style are uniquely Andalusian. The origin of flamenco is a subject of disagreement. The "Dictionary of the Spanish language" primarily attributes the creation of the style to the Spanish Romani. Of the hypotheses regarding its origin, the most widespread states that flamenco was developed through the cross-cultural interchange between native Andalusians, Romani, Castilians, Moors and Sephardi Jews that occurred in Andalusia. The early 20th century poet and dramatist Federico García Lorca wrote that the presence of flamenco in Andalusia significantly predates