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.
Shang dynasty The Shang dynasty (/ʃɑːŋ/;[2] Chinese: 商朝; pinyin: Shāng cháo) or Yin dynasty (/jɪn/; 殷代; Yīn dài), according to traditional historiography, ruled in the Yellow River valley in the second millennium BC, succeeding the Xia dynasty and followed by the Zhou dynasty. The classic account of the Shang comes from texts such as the Book of Documents, Bamboo Annals and Records of the Grand Historian. According to the traditional chronology based on calculations made approximately 2,000 years ago by Liu Xin, the Shang ruled from 1766 to 1122 BC, but according to the chronology based upon the "current text" of Bamboo Annals, they ruled from 1556 to 1046 BC. The Xia–Shang–Zhou Chronology Project dated them from c. 1600 to 1046 BC.