Lê Hoàn
In October 979, a eunuch named Đỗ Thích killed the king Đinh Bộ Lĩnh and prince Đinh Liễn while they were sleeping in the palace at night. The general Lê Hoàn took power as regent while five-year-old Đinh Toàn occupied the throne. Rebellions erupted. At this juncture, the Song sent troops under Hou Renbao in attempt to restore the throne of the young king. However, the threat of renewed Chinese intervention in Vietnam caused court officials to support Lê Hoàn's bid for power. They urged him to become king and establish a more stable government, prepare for the Chinese invasion. In 980, officials and generals gathered at Hoa Lư and queen Dương Vân Nga brought out the king's robe to put on Lê Hoàn, offered him the throne, and subsequently ended the rule of the Đinh dynasty and transferred power to the Lê family.