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
Moorish Gibraltar Gibraltar retreated to the castle and surrendered after a few days to Medina Sidonia. They were expelled along with the city's Jewish population, to be replaced by Spanish Christians. The "Reconquista" of Gibraltar took place on the feast of St. Bernard, whom the Spanish named patron saint of Gibraltar and has remained so ever since. This brought an end to Moorish Gibraltar, just over 751 years after Tariq ibn-Ziyad had begun the conquest of Iberia. Moorish Gibraltar The history of Moorish Gibraltar began with the landing of the Muslims in Hispania and the fall of the Visigothic Kingdom of Toledo