In 1533, the Spanish established a small settlement and started small-scale mining for precious metals in the area, but isolation and transport difficulties hindered extraction. At the time of the War of Independence, the area's strategic position made it a center of guerrilla activity; one of the decisive battles of the war, Chacamarca (Junin), took place nearby, and Simón Bolívar passed through the town after the battle. In 1861, the settlement was named San Jeronímo de Callapampa and in 1893 it became La Oroya. In 1925, La Oroya was designated the capital of the Yauli province and finally, in 1942, it was elevated to city status.