Career
From December 13, 1824 to November 1, 1826 he was head of state of El Salvador, while it was a state of the Central American Federation. He formed part of the Supreme Executive Power of the Federation (the First and Second Triumvirates) in 1823-1824. Villacorta became chief of state of El Salvador on December 13, 1824.
Mariano Prado was vice chief of state.
Villacorta sent 500 troops to help federal President General Manuel José Arce suppress a rebellion in Nicaragua. On April 20, 1825 he introduced the papel sellado, the use of seals on official documents such as contracts, judicial decrees, deeds, et cetera
A tax was charged for the seals. The same month, he denounced the writings of the Archbishop of Guatemala, Fray Ramón Casaus y Torres, who argued against the recognition of Padre José Matías Delgado as archbishop of San Salvador.
As a result, Federal president Arce admonished Casaus, and he suspended his attacks on Delgado.
In October 1826 he sent 300 troops to Guatemala to aid federal President Manuel José Arce. During his administration, El Semanario Político Mercantil was published in El Salvador. On November 1, 1828, Villacorta died in Guatemala.