Like the Panama Canal, which opened almost six decades later, the railway was built to expedite trade shipments between America's west and east coasts in the wake of the Californian Gold Rush.
WSJ: Travel: It's a Jungle Out There | The Panama Canal Railway