Chincha Islands War: Peru allies with Chile against Spain.
The Chincha Islands War, also known as Spanish–South American War (Spanish: Guerra hispano-sudamericana), was a series of coastal and naval battles between Spain and its former colonies of Peru, Chile, Ecuador, and Bolivia from 1865 to 1879. The conflict began with Spain's seizure of the guano-rich Chincha Islands in one of a series of attempts by Spain, under Isabella II, to reassert its influence over its former South American colonies. The war saw the use of ironclads, including the Spanish ship Numancia, the first ironclad to circumnavigate the world.