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.
Southern Tang
The last ruler, Li Yu (Li Houzhu), took over the state upon the death of his father in 961. The Song dynasty had conquered the northern part of the state located in Huainan, and thus Li Yu reigned no longer as an emperor but as the Ruler of the State of Jiangnan (Jiangnan guozhu 江南國主). Li Yu managed to maintain a semi-independent status of vassal of the Song but had to finally surrender after fighting for almost a year in 975. He was taken to the Song capital in Kaifeng where he offered his formal surrender to the Song emperor in early 976.