In 1824 the 11th Line was disbanded. In 1820 he was chief of staff of the liberating army of Peru, and in the same year was promoted to brigadier by the Argentine government, and general of division by the Chilean government.
In 1824, the 11th Line was dissolved. In 1820, he commanded the liberating army of Peru; that same year, he was promoted to brigadier by Argentina and general of division by Chile.