 The first passenger train ran to Barra do Piraí on 9 August 1864.After crossing the Serra do Mar the line forked with the main line going in the direction of Entre Rios (now Três Rios) and the other, the São Paulo branch, heading for Porto de Cachoeira (now Cachoeira Paulista), reaching there on 20 July 1875.In Entre Rios (which was reached on 13 October 1867), the EF Dom Pedro II connected with the "Estrada de Rodagem União e Indústria" (1861) which went from Petrópolis to Juiz de Fora.