For immigrants to the United States, the Transcontinental Railroad presented an opportunity to seek their fortunes in the West. There, they found more opportunity than the port cities of the East Coast, where discrimination kept immigrants living in urban squalor.