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 Castle domination of parts of western Europe for more than seven centuries. It is therefore of historic significance not only for Gibraltar and Iberia, but also for all of western Europe. The present Tower of Homage, and most of what is visible today of the Castle, was rebuilt during the second Moorish period of occupation in the early 14th century, after its near destruction during a reconquest of Gibraltar by the Moors following a re-occupation by Spanish forces from 1309 to 1333. Today the Moorish Castle is one of the major tourist attractions of Gibraltar, and it is shown on the