The Yuan Dynasty, Ming Dynasty and Qing dynasty all made Beijing their capital. When the Qing dynasty lost power and the Republic of China was set up, the new Republic moved its capital from Beijing to Nanjing. When the People's Republic of China seized power, Beijing became the capital of China again.