General Winfield Scott did not "take over" Mexico City in a political sense. Rather, he invaded Mexico and captured Mexico City in 1847 during the Mexican–American War.