With the support of the lower classes, they engaged Spain in the Spanish American wars of independence (1810–1826), which ended with the break-up of former Spanish Empire in America into a number of independent republics.