The transcontinental railway from Limón to Puntarenas became operational in 1910 and was central for the connection of the various fertile regions of the country. The route followed the Atlantic coast until the small port of Matina, before it passed inland to Reventazón River. From there, it bifurcated to cross the northern mountains, with one branch going north of Irazú and the other traversing the Ochomogo Pass. At San José, these lines reunited and the railway continued onto Alajuela, the small Pacific port of Tivives and Puntarenas. The railroad was jointly owned by the state and the Costa Rica railway company, with the latter behind the 1904 arrangement to build several branch lines through the banana districts of the Atlantic littoral.