In the 19th century , Chile saw significant economic and territorial growth , ending Mapuche resistance in the 1880s and gaining its current northern territory in the War of the Pacific -LRB- 1879 -- 83 -RRB- after defeating Peru and Bolivia .
Chile is a territory .