However, the improvised army gathered by Liniers at Cordoba deserted him before battle, so the former Viceroy attempted to flee to the Upper Peru, expecting to join the royalist army sent from the Viceroyalty of Peru to suffocate the revolution at Buenos Aires.