In 1815 he fought José Rondeau, whom he defeated in the Battle of Sipe-Sipe or Viluma. This battle took place on November 29, 1815 near Cochabamba, Alto Perú. It is said to be one of the most serious defeats suffered by the insurgents in the Spanish American wars of independence. The insurgents lost 2,000 men and all their artillery.