The army commanded by Juan José Castelli and Antonio González Balcarce had their first encounter with the royalists under the command of General José Manuel de Goyeneche in October 1810.
The successful advance of the Primera Junta's troops continued to the North of Upper Peru and on June 20, 1811 they met again near the Desaguadero River where battle ensued.