Shortly after his return, he was a participant in the Battle of Callao, where he served as a firefighter. The following year, he was elected a Deputy to the "". Once in office, he was attacked by anonymous critics, complaining that he had made a profit from the various grants that had allowed him to study in Europe. In an effort to silence them, he presented the government with three paintings.