The Chilean War of Independence was a war (1810–1826) in Chile between pro-independence Chilean Criollo peoples seeking political and economic independence from Spain and royalist creoles supporting continued allegiance to the Captaincy General of Chile and membership of the Spanish Empire. Chile thus won its independence from the Spanish crown. See Rancagua.