After the occupation of Lima Chile diverted part of its war efforts to crush Mapuche resistance in the south. Chilean troops coming from Peru entered Araucanía where they in 1881 defeated the last major Mapuche uprising.