Tang dynasty
Zhu Wen, originally a salt smuggler who had served under the rebel Huang Chao, surrendered to Tang forces. By helping to defeat Huang, he was granted a series of rapid military promotions. 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.
Zhu Youwen
In 907, Zhu Quanzhong had Tang Dynasty's last emperor, Emperor Ai, yield the throne to him, ending Tang and starting a new Later Liang as its Emperor Taizu. He created his sons imperial princes, and Zhu Youwen, who had become the deputy military governor of Xuanwu before he took the throne, was given the title of Prince of Bo. Emperor Taizu also made Zhu Youwen the mayor of Kaifeng (i.e., the old Xuanwu headquarters), as well as the director of Jianchang Hall (建昌院) — a conversion of the office overseeing financial matters for the four circuits into an imperial institution. After Emperor Taizu formally made Luoyang his capital in 903, he also made Kaifeng the eastern capital and Zhu Youwen its defender. It was said that, after this point, Zhu Youwen often spent time in drinking and was not as attentive to his responsibilities as before.