 López was promoted to the rank of lieutenant mayor and subsequently, captain.In that capacity, López participated in the ""Northern Campaign"" offensive in what is now Venezuelan territory.Once the campaign ended in February 1823, López returned to Bogotá and was appointed by General Francisco de Paula Santander as military chief of the province of Cauca.