 After Prado's declaration of war, Montero Flores was named military and political chief of the southern Peruvian provinces.After a brief defeat in a naval campaign, he left to Lima where he joined Nicolás de Piérola's forces.He fought in the War of the Pacific during battles of San Juan and of Miraflores in January 1881.