 (Panama split off from Colombia in 1903 and became the independent Republic of Panama).By spanning the isthmus, the line thus became the first railroad to completely cross any part of the Americas and physically connect ports on the Atlantic and Pacific Oceans.Given the tropical rain forest environment, the terrain, and diseases such as malaria and cholera, its completion was a considerable engineering challenge.