He became active in Peruvian politics, forming part of the country's first Constituent Congress and representing it diplomatically in Europe, specifically as minister to France and Portugal, among other states.
His best-known work is La victoria de Junin, which pictures the Latin American fighters for independence from Spain as the legitimate heirs of the Incas.
During the days following the meeting, Antepara and Villamil managed to convince the military leaders in charge of Guayaquil’s defense to join the cause of independence.
The cause of independence, eventually led by León de Febres Cordero, continued in the following days with exhaustive planning of the rebellion that aimed to keep losses and use of weapons to a minimum.
Finally, on the night of 8 October the revolution began with the capture of several military outposts by the rebels and the apprehension of authorities loyal to the Spanish crown.
Among his most well known works are: Canto a Bolívar; Al General Flores, vencedor en Miñarica; and Alfabeto para un niño.
In 1837 he wrote Canción del 10 de agosto, which served as a precursor to the current national anthem as demonstrated by Espinosa Pólit.
In 1843 he edited Ocios poéticos del General Flores y una oda en su obsequio in 52 pages.