 Politically, Nanjing was the capital of China several times, although most of the time its territory only covered the southeastern part of China, such as the Wu kingdom in the Three Kingdoms period, the Eastern Jin Dynasty, and during the Southern and Northern Dynasties and Five Dynasties and Ten Kingdoms periods.Only the Ming occupied most parts of China from their capital at Nanjing, though it later moved the capital to Beijing.The ROC capital was located in Nanjing in the periods 1911–12, 1927–37, and 1945–49.