The War of the Confederation, was a military confrontation waged by Chile, along with Peruvian dissidents, and the Argentine Confederation against the Peru–Bolivian Confederation between 1836 and 1839.