The Yuan Dynasty was a Mongol dynasty that ruled Mongolia and China from 1271 to 1368 . The Yuan Dynasty ( 1271 â `` 1368 ) was the first time that non-native Chinese people ruled all of China . In historiography of Mongolia , it is generally considered to be the continuation of the Mongol Empire .