At the beginning of the independence struggle in 1810, he became actively involved in the public meetings that accompanied the establishment of the first Junta. In 1811, he became a cadet of the Dragones de la Frontera, and participated in the battles of Huilquilemu, Talcahuano, El Roble and El Quilo during the Chilean War of Independence.