The New Mexico Territory was a region created in 1850 following the Compromise of 1850, which aimed to resolve tensions between free and slave states in the U.S. The territory encompassed present-day New Mexico and parts of Colorado, Utah, and Arizona. Its establishment was significant in the ongoing debate over slavery's expansion into western territories, impacting the political landscape of the time.