In 1914, after Billinghurst's overthrow, Valdelomar was forced to return to Peru, where he worked as secretary to historian Jose de la Riva-Agüero, under whose influence he wrote La mariscala, the biography of Francisca Zubiaga (1803–1835), wife of the president, Agustín Gamarra.
Gamarra | Agustín de Iturbide | Agustín Barrios | Juan Agustín Ceán Bermúdez | José Agustín Arango | Agustín Roberto Radrizzani | Agustin Kola | San Agustín Canton | José Agustín | Ato Agustin | Agustín Muñoz Grandes | Agustín Gamarra | Agustín de Betancourt | San Agustín | San Agustin | Plains of San Agustin | José Agustín Silvestre de los Santos | José Agustín Quintero | Colegio San Agustin | Agustín Viana | Agustín Velotti | Agustín Rodríguez Santiago | Agustín Orión | Agustín Millán | Agustín Ibarrola | Agustín Gajate | Agustín Feced | Agustín de Iturbide y Green | Agustín Bernal | Agustín Almodóvar |
Then Bulnes commanded the Chilean army in 1838 against Gen. Santa Cruz in Peru; and, after taking Lima and winning the battles of Huaraz and Puente del Buin, combined his forces with those of Gamarra and defeated Santa Cruz at the Battle of Yungay (January 19, 1839), thus putting an end to the confederation between Peru and Bolivia.
On November 18, 1841, with Agustin Gamarra being dead, the Peruvian Army left Bolivia.