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
Arabic language influence on the Spanish language of Burgos and La Rioja in what is now northern Spain. However, Toledo in central Spain, which became the capital of the early Kingdom of Castile during its southward expansion, is where Spanish began to appear in a written form recognizable today. The pre-existing Mozarabic dialect of this region (i.e. the Romance present during Muslim rule) is therefore likely to have also had an important formative influence on modern Spanish. The lexical influence of Arabic reached its greatest level during the Christian Reconquista, when the emerging Kingdom of Castile conquered large territories from Moorish rulers particularly in the 11th, 12th