In the Battle of Yungay, Chile defeats an alliance between Peru and Bolivia.

The Battle of Yungay (or Yungai) was the final battle of the War of the Confederation, fought on January 20, 1839, near Yungay, Peru. The United Restorer Army, led by Chilean General Manuel Bulnes, consisting mainly of Chileans and 600 North Peruvian dissidents, attacked the Peru-Bolivian Confederation forces led by Andrés de Santa Cruz in northern Peru, 200 kilometers (120 mi) north of Lima.

The decisive battle ended with a complete Restorer victory after six hours of fighting, and effectively dissolved the Peru-Bolivian Confederacy. It ended the War of the Confederation, and Santa Cruz exiled himself to Guayaquil, Ecuador. The new Peruvian government paid its debt with Chile from the liberation expedition from a decade ago, and gave awards to Chilean and Peruvian officials. Peruvian officers who served under the Confederation, including Guillermo Miller, Mariano Necochea, Luis José Orbegoso, and Domingo Nieto, were banned from the Peruvian Army.