The area was settled by the Inca, who inhabited the area at the time Spanish settlement began in 1549. The Spanish found and looted gold there and mined it, carrying the gold to Spain. The province was named for its historically important gold production. The gold was mined by Indigenous slaves held captive by the Spanish mainly in the late 16th and 17th centuries in the village of
Zaruma in the
Zaruma Canton. The earthquake of January 1749 destroyed the mining area. A local rebellion stopped the mining until the Spanish agreed to allow the native people to benefit from the mining. Spain imported gold from the area until the area gained its independence from Spain in 1820.
Philip II of Spain granted the village the title of "Villa de Sant Antonio del Zerro de Oro de Zaruma". After 1820, Ecuador emerged as an independent nation, as neighboring areas to Zaruma also declared their independence. In 1882, the province of El Oro was formed by the villages of Zaruma, Machala and Santa Rosa, with Zaruma as its capital, and the area's gold mining as the reason for the name of the province. Two years later, the capital of the province was moved to
Machala. Gold mining continued under various mining companies, which now paid taxes to the government for the gold they mined. As gold mining fell in value, El Oro province became the major area of banana production in Ecuador. Peru invaded and occupied most of El Oro province during the
Ecuadorian–Peruvian War of 1941. ==Geography==