The first transcontinental railroad was built primarily by immigrants from China and Ireland. The government provided loans for each mile of track laid and the railroad corporations that received about twenty million acres of land grants as a reward and incentive from the federal government.