The economic history of Ecuador covers the period of the economy of Ecuador in Ecuadoran history beginning with colonization by the Spanish Empire, through independence and up to modern-day. Colonial Ecuador relied on agriculture rather than mining that dominated the capitals of the Viceroys of Peru and Nueva Granada. The temperate climate of the Sierra was ideal for crop cultivation and the Costa became a top producer of cash crops, with Ecuador being one of the leading producers of cacao.