José de San Martín Chile. The battle began on 12 February. San Martín organized a pincer movement, with Soler leading the west column and O'Higgins the east one. O'Higgins, eager to avenge the defeat at Rancagua, rushed to the attack, instead of coordinating with Soler. This gave the royalists a brief advantage. San Martín instructed Soler to rush the attack as well. The combined attack was successful and San Martín's column secured the final victory. The battle ended with 600 royalists dead and 500 prisoners, with only 12 deaths and 120 injuries in the Army of the Andes. The army triumphantly entered Santiago de
José Bernardo de Tagle y Portocarrero, Marquis of Torre Tagle member of the triumvirate under José de La Mar. In January 1823, the congress appointed him president, but a military mutiny deposed him and proclaimed José de la Riva Agüero president on 28 February. After the deposition of Riva Agüero and his retreat to Trujillo, Torre Tagle was appointed president by Antonio José de Sucre on 20 July, and elected by the congress on 16 August, and Bolivar, who on his arrival 1 September had been proclaimed dictator, left him in charge of the government. During his tenure, the Peruvian flag, which had been established by José de San Martín,