He became a member of the Army General Staff, and participated in the Battle of Pisagua (November 2, 1879) and the Battle of Dolores (November 19, 1879); helping capture the Peruvian province of Tarapacá, which was effectively separated from the rest of the country.