The original company, the Union Pacific Rail Road was incorporated on July 1, 1862, under an act of Congress entitled Pacific Railroad Act of 1862. The act was approved by President Abraham Lincoln, and it provided for the construction of railroads from the Missouri River to the Pacific as a war measure for the preservation of the Union. It was constructed westward from Council Bluffs, Iowa to meet the Central Pacific Railroad line, which was constructed eastward from Sacramento, California. The combined Union Pacific–Central Pacific line became known as the First Transcontinental Railroad and later the Overland Route.
Subsequently, the UP purchased three Mormon-built roads: the Utah Central Railroad extending south from Ogden to Salt Lake City, the Utah Southern Railroad extending south from Salt Lake City into the Utah Valley, and the Utah Northern Railroad extending north from Ogden into Idaho.
The original UP was entangled in the Crédit Mobilier scandal, exposed in 1872. As detailed by The Sun, Union Pacific's largest construction company, Crédit Mobilier, had overcharged Union Pacific; these costs had then been passed on to the United States government. In order to convince the federal government to accept the increased costs, Crédit Mobilier had bribed congressmen. Several prominent UP board members (including Durant) had been involved in the scheme. The ensuing financial crisis of 1873 led to a credit crunch, but not bankruptcy.
As boom followed bust, the Union Pacific continued to expand. The original company was purchased by a new company on January 24, 1880, with dominant stockholder Jay Gould. Gould already owned the Kansas Pacific (originally called the Union Pacific, Eastern Division, though in essence a separate railroad), and sought to merge it with UP. Thusly was the original "Union Pacific Rail Road" transformed into "Union Pacific Railway."
Extending towards the Pacific Northwest, Union Pacific built or purchased local lines that gave it access to Portland, Oregon. Towards Colorado, it built the Union Pacific, Denver and Gulf Railway: both narrow gauge trackage into the heart of the Rockies and a standard gauge line that ran south from Denver, across New Mexico, and into Texas.The Union Pacific Railway would later declare bankruptcy during the Panic of 1893. Again, a new Union Pacific "Railroad" was formed and Union Pacific "Railway" merged into the new corporation.
In the early 20th century, Union Pacific's focus shifted from expansion to internal improvement. Recognizing that farmers in the Central and Salinas Valleys of California grew produce far in excess of local markets, Union Pacific worked with its rival Southern Pacific to develop a rail-based transport system that was not vulnerable to spoilage. These efforts came culminated in the 1906 founding of Pacific Fruit Express, soon to be the world's largest lessee of refrigerated railcars.
Meanwhile, Union Pacific worked to construct a faster, and more direct substitute for the original climb to Promontory Point. In 1904, the Lucin cutoff opened, reducing curvature and grades. The original route would eventually be stripped of track in 1942 to provide war scrap.
To attract customers during the Great Depression, Union Pacific's chairman W. Averell Harriman simultaneously sought to "spruce up" the quality of its rolling stock and to make its unique locations more desirable travel destinations. The first effort resulted in the purchase of the first streamlined train: the M-10000. The latter resulted in the Sun Valley ski resort in central Idaho; it opened in 1936 and finally was sold in 1964. Despite the fact that the M-10000 and its successors were among the first diesel locomotives, Union Pacific completed dieselization relatively late. In 1944, UP finally received delivery of its last steam locomotive: Union Pacific 844.
As the 20th century waned, Union Pacific recognized—like most railroads—that remaining a regional road could only lead to bankruptcy. At the close of December 31, 1925, UP and its subsidiaries had operated 9,834 miles of routes and 15,265 miles of track; in 1980, these numbers had remained roughly constant (9,266 route-miles and 15,647 track-miles). But in 1982, UP acquired the Missouri Pacific and Western Pacific railroads, and 1988, the Missouri–Kansas–Texas. By 1993, Union Pacific had doubled its system to 17,385 route-miles.
By then, few large (class I) railroads remained. The same year that Union Pacific merged with the Chicago and North Western (1995), while the Burlington Northern and ATSF announced plans to merge. The impending BNSF amalgamation would leave one mega-railroad in control of the west. In order to compete, UP quickly merged with Southern Pacific, thereby incorporating D&RGW and Cotton Belt, and forming a duopoly in the West. The merged railroad took the Union Pacific name.