In 1836, then Spanish Prime Minister Juan Alvarez Mendizabal unleashed his decree that targeted the privatization of lands owned by religious orders with the aim of winning the ongoing Carlist War and improving agricultural production as well as overall economic situation.