 After the defeat of his liberal army at the Battle of Lircay on April 17, 1830, Freire, like O'Higgins, went into exile in Peru.Although never president, Diego Portales dominated Chilean politics from the cabinet and behind the scenes from 1830 to 1837.He installed the "autocratic republic", which centralized authority in the national government.