The United States acquired the area of Utah from Mexico in 1848. Utah Territory was organized on September 9, 1850, from the acquired area plus a small portion of territory sold to the United States by Texas. Utah Territory included all of present-day Utah, most of Nevada, and part of western Colorado and southwestern Wyoming. The territory was reduced in 1861 with the organization of Colorado and Nevada territories, and additional area was lost to Nevada in 1862 and 1866. The territory was further reduced in 1863 with the organization of Idaho Territory and in 1868 with the organization of Wyoming Territory, to arrive at generally the same boundary as the present state. Utah was admitted to the Union on January 4, 1896, as the 45th state.