Also during this time was the invasion of Ecuador which caused the Ecuadorian-Peruvian War of 1858–1860 in which Peru emerged victorious.