 The new emperor introduced strict penal codes to prevent chaos from happening again.He then tried to form alliances by granting the title of Queen to five women from the five most influential families.In 979, Emperor Đinh Tiên Hoàng and his crown prince Đinh Liễn were assassinated, leaving his lone surviving son, the 6-year-old Đinh Toàn, to assume the throne.