Installed in the city of Mendoza, San Martín reorganized the "Granaderos" cavalry unit into the Army of the Andes, which he created out of patriots from both the United Provinces and exiles from Chile.