Continuing his march to the north, he took Potosí on 21 June and Vilcapugio on 27 September where they awaited reinformcement.
Five days later the royalist army arrived, commanded by General Joaquín de la Pezuela, to fight at the Battle of Ayohuma.