On May 26, 1880, the Battle of Tacna was fought, where the Chileans defeated the combined Bolivian-Peruvian Army. Cáceres had a notable participation in this action after which he retreated to Lima.