During Chile's War of Independence he joined the patriotic side, commanding army volunteers. After the reconquest of Chile he was exiled to Mendoza and when he was informed of Chile's independence he returned to the country. He made donations to the government for undertaking the Liberation Expedition to Peru.