 The Order of Calatrava moved from the uncomfortable location of Castillo de Calatrava la Nueva to the Sacro Convento in Almagro proper, but did not remain permanently.During the Peninsular War, an active Bonapartist masonic lodge was established in Almagro.The town suffered during the Carlist Wars and the sale of church lands by Juan Álvarez Mendizábal and Pascual Madoz.