<Tr> <Td> Northern Yuan dynasty </Td> <Td> </Td> </Tr> <Tr> <Td> Ming dynasty </Td> <Td> </Td> </Tr> <P> The Yuan dynasty (Chinese: 元 朝; pinyin: Yuán Cháo), officially the Great Yuan (Chinese: 大 元; pinyin: Dà Yuán; Yehe Yuan Ulus), was the empire or ruling dynasty of Mongolia established by Kublai Khan, leader of the Mongolian Borjigin clan . Although the Mongols had ruled territories including today's North China for decades, it was not until 1271 that Kublai Khan officially proclaimed the dynasty in the traditional Chinese style, and the conquest was not complete until 1279 . His realm was, by this point, isolated from the other khanates and controlled most of present - day China and its surrounding areas, including modern Mongolia . It was the first foreign dynasty to rule all of China and lasted until 1368, after which the rebuked Genghisid rulers retreated to their Mongolian homeland and continued to rule the Northern Yuan dynasty . Some of the Mongolian Emperors of the Yuan mastered the Chinese language, while others only used their native language (i.e. Mongolian) and the' Phags - pa script . </P> <P> The Yuan dynasty was the khanate ruled by the successors of Möngke Khan after the division of the Mongol Empire . In official Chinese histories, the Yuan dynasty bore the Mandate of Heaven, following the Song dynasty and preceding the Ming dynasty . The dynasty was established by Kublai Khan, yet he placed his grandfather Genghis Khan on the imperial records as the official founder of the dynasty as Taizu . In the Proclamation of the Dynastic Name, Kublai announced the name of the new dynasty as Great Yuan and claimed the succession of former Chinese dynasties from the Three Sovereigns and Five Emperors to the Tang dynasty . </P>

Who set up the first foreign dynasty in china