Andrés de Santa Cruz y Calahumana (; 30 November 1792 – 25 September 1865) was a Bolivian general and politician who served as interim president of Peru in 1827, the interim president of Peru from 1836 to 1838 and the sixth president of Bolivia from 1829 to 1839. He also served as Supreme Protector of the short-lived Peru-Bolivian Confederation from 1836 to 1839, a political entity created mainly by his personal endeavors. Early life and education Santa Cruz was born on 30 November 1792, in the town of Huarina, La Paz. His father was José Santa Cruz y Villavicencio, a Spaniard, and his mother Juana Basilia Calahumana, an Amerindian and cacique of the town of Huarina. In later years, Andrés de Santa Cruz would claim that through his mother, he descended directly from Inca rulers. He began his studies in his hometown at the San Francisco Convent, and continued them at the San Antonio Abad Seminary in the city of Cuzco. In 1809 he left the seminary and returned to La Paz. Military career After Santa Cruz's return home, his father enrolled him as an alférez in the Dragones de Apolobamba Regiment of the Spanish Army. As such, he participated in the battles of Guaqui (20 July 1811), Vilcapugio (1 October 1813) and Ayohuma (14 November 1813). The latter resulted in the defeat of the Argentine Independentist forces attempting to liberate the Upper Peru (modern day Bolivia) from Spanish rule. Santa Cruz also took part in the Spanish colonial campaigns to suppress the insurrection of Mateo Pumacahua (1814–15), further demonstrating his loyalty to the Spanish Crown. His luck ran out at the Battle of La Tablada (15 April 1817), where he was captured and taken as prisoner of war to Buenos Aires. He managed to escape, first to Rio de Janeiro and then to Lima. As a reward, he was named Commander of Chorrillos. War of Independence At the time of the landing of the rebel army of José de San Martín on the Peruvian coast, Santa Cruz was commander of militia forces in the region of Huarochirí. In that position, he fought against the independentist in the Battle of Pasco (6 December 1820), but the royalists were defeated and Santa Cruz captured. Taken to San Martin's headquarters at Huaura, he decided to switch sides and joined the Patriot Army (8 January 1821). Santa Cruz ascended rapidly, reaching the rank