 The construction of a railway linking the city of São Paulo to Santos' seaport, in 1867, was very important for its growth.In the second half of the 19th century, with the abolition of slavery, farming and industrialization attracted many foreign immigrants to replace the lost manpower, mainly from Italy.Coffee became an important export and the city became wealthy.