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 disbanded. In 1820, he served as chief of staff for Peru's liberation forces; in that same year, he received promotions from both Argentine and Chilean governments.