In order to build the Transcontinental Railroad, the railroad companies needed to gather the right building materials for a project this size. They used timber for railroad beams, iron and steel for tracks and spikes, and black powder and nitroglycerin to blast through rocks and mountains.