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
Polo (flamenco palo) around the same years). Some critics argue that this was not yet the current "polo", but a primitive folkloric song, which was not yet flamenco: (...) the Gypsies, in the eve of flamenco, were acting on the Spanish popular rhythms and songs which, still preserving this popular quality, evolved sensibly towards an "agitanamiento" ("gypsying") which will finally be evident. When this transition time was completed, that song, that rhythm that the Gypsies knew in Andalusia were already a different thing, they were flamenco. In the case of the polo, this did not happen until the beginning of the 19th century,