who was the last ruler of the tang dynasty
Tang dynasty Zhu Wen, originally a salt smuggler who had served under the rebel Huang, surrendered to Tang forces. By helping to defeat Huang, he was granted a series of rapid military promotions.[71] In 907 the Tang dynasty was ended when Zhu Wen, now a military governor, deposed the last emperor of Tang, Emperor Ai of Tang, and took the throne for himself (known posthumously as Emperor Taizu of Later Liang). He established the Later Liang, which inaugurated the Five Dynasties and Ten Kingdoms period. A year later Zhu Wen had the deposed Emperor Ai poisoned to death.
Yuan dynasty The Yuan dynasty (Chinese: 元朝; pinyin: Yuán Cháo), officially the Great Yuan[4] (Chinese: 大元; pinyin: Dà Yuán; Yehe Yuan Ulus[b]), 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,[5] 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.[6] 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.[7] 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.[8]