The Chilean War of Independence (1810–1826) shaped an era of banditry as the war transitioned into irregular warfare known as Guerra a muerte (1819–1821) which was particularly destructive for the Biobío area and ended only to see a period of outlaw banditry occur until the late 1820s.