 He then participated in Francisco Morazán's armed forces, on March 14, 1832, along with his friend José Santos Guardiola, in the war in Jocoro, El Salvador.He was promoted to sergeant, and this promotion was signed by Morazan himself.In 1841 he was again promoted to captain by General Julian Tercero, and he served under the leadership of Francisco Ferrera.