<span>This rivalry inspired the United States to enter into the 1848 Treaty of Guadalupe Hidalgo. Under this treaty, Mexico gave up Texas, New Mexico, and California to the United States. This was thought to be controversial during the 1840's because a lot of Americans thought that Texas should not have been annexed, and Texas claimed that it still controlled New Mexico. There was a struggle for power.</span>