sentences:  In 1816, having risen to the rank of major general, he was appointed to take command of the Spanish forces in Peru battling the insurgents.He arrived in Callao on September 22, 1816 and proceeded directly to Alto Perú (now Bolivia).He took charge of the army in Cotagaita on November 12, 1816.