 In 1889, it became a comarca.In 1945, Fernando Costa, then governor of São Paulo, elevated it to the condition of "Estância Sanitária".Since the 19th century, the city is an important coffee producer.