Throughout the early to mid-1800s, small, local railroad lines cropped up across the country. In 1862, however, railroads began to play a more prevalent role in cross-country travel after Congress passed the Pacific Railway Act authorizing the construction of the first transcontinental railroad.