With the remnants of his division, Valdés managed to retreat to the hill held by his rearguard, where he joined 200 cavalrymen that had gathered around general Canterac and some dispersed soldiers from royalist divisions (whose fleeing demoralized men even shot and killed their own officers trying to regroup them). The now heavily reduced force had no hope of defeating the independentist army. With the main body of the royal army destroyed and the viceroy himself in the hands of his enemies, the royalist leaders surrendered.