Sánchez Carrión severed as Bolivar's secretary or general minister, accompanying him throughout his victorious campaign in Peruvian soil and acquiring the necessary resources needed by the United Liberating Army (composed by the "Expedición Libertadora del Perú", Gran Colombia, and the Republic of Peru) which emerged victorious in the battles of Junin and Ayacucho. He was Minister of Finance of Peru from April 1824 to October 1824. Afterwards, he served from 1824 to 1825 as Peru's Minister of Government and Foreign Relations, and as such signed the invitations written by Simon Bolivar for the American nation's attendance to the Congress of Panama.