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.
Emperor Dezong of Tang
Emperor Dezong of Tang (27 May 742 – 25 February 805), personal name Li Kuo, was an emperor of the Chinese Tang Dynasty and the oldest son of Emperor Daizong. His reign of 26 years was the third longest in the Tang dynasty (surpassed only by Emperor Xuanzong and Emperor Gaozong). Emperor Dezong started out as a diligent and frugal emperor and he tried to reform the governmental finances by introducing new tax laws. His attempts to destroy the powerful regional warlords and the subsequent mismanagement of those campaigns, however, resulted in a number of rebellions that nearly destroyed him and the Tang Dynasty. After those events, he dealt cautiously with the regional governors, causing warlordism to become unchecked, and his trust of eunuchs caused the eunuchs' power to rise greatly. He was also known for his paranoia about officials' wielding power, and late in his reign, he did not grant much authority to his chancellors.