 Their forces took over most of the south and took control of the town of Popayán.López advanced to Tocaima, where he confronted General Rafael Urdaneta, but both reached a ceasefire that followed the "Apulo Agreement", signed on 28 April 1831.The following year, during the government of Francisco de Paula Santander, López was appointed military chief of Bogotá, and two years later, in 1834 was appointed governor of Cartagena.