The Central Pacific and the Union Pacific were the two companies charged to build the Transcontinental Railroad. Although the government funded and approved the building of the Transcontinental Railroad before the Civil War, the main construction of the railway began after the Civil War around 1865.