The Forbidden City is the third imperial palace to have been built in Beijing. The first was built during the Jin Dynasty (1115-1234), the second during the Yuan Dynasty (1271-1368), and the Forbidden City was built during the Ming Dynasty (1368-1644). The Ming Dynasty began with protests against the rule of the Mongols of the Yuan Dynasty, so we will start our story there.