 He participated in military combat in the battle of Alto Palacé (30 December 1813), the battle of (January 1814), battle of Tacines (9 May 1814) and the battle of Pasto (10 May 1813).During the battle of La Cuchilla del Tambo, López was taken prisoner by the Spanish Army.López was sent to Bogotá, where he was tried by court martial and was found guilty of treason against the Crown and sentenced to death.