 He studied and worked with Francisco José de Caldas on the defense plans for Antioquia from the royalist’s Reconquista.Since 1813 he got involved in the fight for independence, joining in the army assembled by the colonel José María Gutiérrez.In short time he was made colonel and put in charge of the garrison unit in Popayán.