History of Hispanic and Latino Americans in the United States
In 1821, Mexico gained independence from Spain, annexing the southwest of the present United States, including Arizona. As missions began to wither, Mexico began auctioning off more land, causing the Pimería Alta and the Apachería to shrink as territory expanded. In the meantime, American mountain men began to enter the region, looking to trap beavers for their pelts. In 1836, Texas declared independence from Mexico and claimed much of the territory in the northern lands of Mexico. When the United States annexed Texas in 1846 over the strong objections of the Mexican government, U.S. troops moved into disputed territory. The hostilities erupted in the Mexican–American War (1846–1848). The U.S. occupied Mexico City and forced the newly founded Mexican Republic to give up its northern half, including the later Arizona.
Adams–Onís Treaty
The treaty was ratified by Spain in 1820, and by the United States in 1821 (during the time that Spain and Mexico were engaged in the prolonged Mexican War of Independence). Spain finally recognized the independence of Mexico with the Treaty of Córdoba signed on August 24, 1821. While Mexico was not initially a party to the Adams–Onís Treaty, in 1831 Mexico ratified the treaty by agreeing to the 1828 Treaty of Limits with the U.S.