Has Beijing always been the capital of China?
As a unified "China", it was the Yuan Dynasty that made Beijing its capital for the first time, which was then called "Dadu".
After the establishment of the Ming Dynasty, its capital was Tianfu (later Nanjing), and the foreign regime (Yuan Dynasty established by Mongols) was pacified, Zhu Yuanzhang renamed "Dadu" as "Beiping", which means "Northern pacification".
Judy, the Yongle emperor of the Ming Dynasty, was a "prince" before he became emperor, and his fief was in Beiping Prefecture. He thought that the geographical location of Beiping was better than Yingtianfu, the capital at that time, and he planned to move the capital. The process of moving the capital is very long, during which there were two moves. Beiping will be called Beijing and Nanjing in the future because it is located in the north and south. The names of Beijing and Nanjing began here.
The Qing Dynasty followed the Ming Dynasty, with Beijing as its capital.
During the Republic of China, the capital was located in Nanjing.
People's Republic of China (PRC) was founded in 1949, with its capital in Beijing.