The Mongols conquered China and instituted the Yuan Dynasty. This would have been a very traumatic moment in Chinese history, and it did seem to have inspired a lot of resentment within China against these foreign rulers. We see this in the example of China's traditional bureaucratic class of government scholars, which became largely detached from politics. Indeed, as Mongol rule stretched forwards, the Mongols had to wrestle with rebellions and uprisings, and within less than a century after the Mongols had deposed the last of the Song Emperors, the Mongols were themselves overthrown and driven from China by the ascendant Ming. The Ming Dynasty quickly acted to restore and strengthen the traditional cornerstones of Chinese politics and administration, most notably the Civil Service Exams, which were reinstated to be more intense than ever before.