In October 979, a eunuch named Đỗ Thích killed both Đinh Bộ Lĩnh and Đinh Liễn while they slept. The general Lê Hoàn took power as regent in the name of the five-year old Đinh Toàn, Đinh Bộ Lĩnh's youngest son. Rebellions soon swept the countryside.
In October 979, a powerful eunuch named Đỗ Thích eliminated Đinh Bộ Lĩnh and Đinh Liễn while they were resting. Following their deaths, General Lê Hoàn took control as regent for the five-year-old Đinh Toàn, the youngest son of Đinh Bộ Lĩnh. This led to widespread rebellions in the rural regions.