On the morning of June 19, the revolutionary army had placed their troops in
Guaqui, Caza and Machaca and built a temporary bridge over the Desaguadero River moving 1,200 troops across. The aim was to distract Goyeneche's troops on their front and right flank while surrounding the royalists on their rear through the lines established by this new bridge. General Goyeneche decided to do a direct attack with his full force. At three in the morning of June 20, he ordered colonels Juan Ramírez and Pablo
Astete, lieutenant colonels Luis Astete and Mariano Lechuga (with 350 cavalry and four cannons) to attack Caza, near the road to Machaca and communication to Guaqui, while he marched towards Guaqui with colonels Francisco Picoaga and Fermín Piérola commanding 300 cavalry, 40 guardsmen and 6 pieces of artillery. At dawn the heights on the hills the royalist troops needed to take were already teeming with revolutionary troops, cavalry and fusiliers who started shooting the Spaniards along with
grenades and
slingshots. The royalists responded, and within a few hours, made the revolutionaries retreat. When the independentist troops heard of Goyeneche's advance towards Guaqui, Castelli, Balcarce and Montes de Oca left the town with 15 artillery pieces and 2,000 men and took a strong position on the road to Guaqui between a small lake and the hills behind. Goyeneche ordered an advance under enemy fire while colonel Picoaga's battalion covered them with return fire. The independentist troops, recognizing General Goyeneche, directed their fire towards him, and he ordered one of his aides to transmit the order to attack with his right flank, also covering the road with Piérola's battalion and detached three companies to advance on the front while he and the rest of his troops attacked through the left. The Argentine cavalry tried to stop the push but was overrun and fled, along with the whole rebel army towards Guaqui. Goyeneche ordered pursuit and subsequently captured the town. Colonel Ramírez soon after sent a messenger informing them of victory at Caza. The battle ended with the Argentine troops in full retreat, with more than 1,000 men lost and abandoning most of their artillery. In full run they took refuge in
Potosí and later on farther south in
Jujuy. == Consequences ==