qnli question: When did the battle for Mexico City take place sentence: The Battle for Mexico City was the series of engagements from September 8 to September 15, 1847, in the general vicinity of Mexico City during the Mexican–American War.