 When the slavery was brought down and the so-called Old Republic begun, Italian immigrants arrived in São Paulo to replace the now-free slaves in the coffee farms.The farmers from São Paulo wanted a railway to more efficiently take their coffee to the ports.As the construction of railways connecting the coast to the countryside started, the Companhia Mogyana de Estradas de Ferro was created, having its first train station inaugurated on March 18, 1872, in Campinas.