In colonial Spanish America, the Reconquista refers to the period following the defeat of Napoleon in 1814 during which royalist armies were able to gain the upper hand in the Spanish American wars of independence. The term makes an analogy to the medieval Reconquista, in which Christian forces retook the Iberian Peninsula.