The Forbidden City, one of China's most iconic architectural marvels, was not constructed in the ancient capital of Xi'an. Instead, this sprawling imperial palace complex sits at the heart of Beijing, which served as the political center of China during both the Ming and Qing dynasties.
Xi'an (formerly Chang'an) was indeed a major capital for several early dynasties, including the Han and Tang, but the Forbidden City's construction began in 1406 under the Yongle Emperor of the Ming Dynasty, long after the capital had shifted north to Beijing. The palace served as the ceremonial and political center of Chinese government for nearly 500 years.
The move to Beijing reflected strategic considerations: proximity to the northern frontiers for defense against Mongol incursions, and the desire of the Yongle Emperor to legitimize his rule after seizing the throne from his nephew. The Forbidden City's location in Beijing underscores the city's enduring role as China's political hub.