On November 2, 1879 Pisagua was occupied by Chilean troops during the Guerra del Pacífico, in the "Battle of Pisagua". After the war, Pisagua went from Peruvian hands to Chilean administration.