United States took over Mexican Cession in the Mexican-American war of 1846-1848. In this war, the US gained control of the land, but the Mexican side refused to acknowledge the change in borders until the US attacked central Mexico, including Mexico City.