The southwestern corner of what became the Wyoming Territory, south of the 42nd parallel, became part of the United States with the 1848 Mexican Cession. An eastern section of this was once claimed by the Republic of Texas. In 1851, the portion of this land west of the continental divide was made part of the Utah Territory, and, with the organization of the Colorado Territory in 1861, most of it was transferred to the Nebraska Territory and subsumed into the Idaho Territory, in 1863. A small corner of Wyoming remained part of Utah until the creation of the Wyoming Territory, in 1868.