The Chincha Islands War, also known as Spanish–South American War, was a series of coastal and naval battles between Spain and its former colonies of Peru and Chile from 1864 to 1866.