The city was founded in the 1820s by agricultural migrants from the Central Valley. The region's earliest residents were dedicated to growing basic foodstuffs, namely beans, corn, and sugar cane. Local farmers started growing coffee in the highland valley in the 1890s.