History of rail transport in Brazil
The history of rail transport in Brazil dates back to 1854. In that year, Brazil's first railway line, with a gauge of, was completed between the port of Mauá, in Guanabara Bay in the then province of Rio de Janeiro, and Fragoso in the Brazilian hinterland. The steam locomotive Baroneza hauled the trains on this long line.
Soon afterwards, the line was extended to Raiz da Serra. Thirty years later, the railway company Estrada de Ferro Leopoldina further extended the line up into the mountains as far as Petrópolis. During this period, many railway lines were constructed and put into operation in Brazil by regional train operating companies.
The establishment of a superior, state railway company took place in 1957. On 16 March of that year, Rede Ferroviária Federal, Sociedade Anônima was founded in a merger of 18 individual regional companies. The RFFSA route network was used for both passenger and freight trains. Between 1996 and 1998, RFFSA was privatized, and in 2007 it was finally dissolved. During the privatisation and dissolution process, the RFFSA's route network was regionalised and licensed for operation by private companies.