Enthronement
According to Đại Việt sử ký toàn thư and Việt sử lược, during the reign of Lê Long Đỉnh, in Diên Uẩn village (Cổ Pháp province), there was a kapok tree struck by a lightning. The resulting marks formed a poem which is called by Vietnamese historian as Sấm cây gạo (The kapok tree prophecy):Thụ Căn yểu yểuMộc biểu thanh thanhHòa đao mộc lạcThập bác tử thành Chấn cung xuất nhựtĐoài cung ẩn tinhLục thất niên gianThiên hạ thái bìnhEnglish translation based on the original translation from Đại Việt sử ký toàn thư and Việt sử lược:
The root is deepThe tree bark is greenPeach tree fallsEighteen children are bornThe Eastern sun risesThe western star fades Approximately six, seven yearsPeace is brought to the realm
Thụ Căn yểu yểu (The root is deep), the root symbolizes to the emperor, "yểu" means short-live. It predicts the emperor is short-live. Mộc biểu thanh thanh (The tree bark is green), bark symbolizes the mandarins under the emperor, while green signifies flourishing or prosperity. The phrase thus indicates that the mandarinate would flourish. In the third sentence, Hòa (禾) + Đao (刀) + Mộc (木) combine to form the character Lê (黎), this indicates the fall of the Lê dynasty. In the fourth sentence, Thập (十) + Bát (八) + Tử (子) combine to form the character Lý (李), which is interpreted as indicating the establishment of the Lý clan or dynasty.
The first four sentences are interpreted as predicting the fall of the Lê dynasty and the rise of the Lý dynasty. The final four sentences are understood as indicating historical events up to the Trịnh–Nguyễn warlord era. However, footnotes in the 1993 edition of Đại Việt sử ký toàn thư claim the last four sentences were entirely fabricated by the historians of the Trần and Later Lê dynasty in order to legitimize their rule through the Mandate of Heaven theory.
News about the kapok tree prophecy started spreading all over the realm. Patriarch Vạn Hạnh told Công Uẩn: "I have seen the prophecy glyphs indicates that the Lý's clan will flourish and rise to the throne. There are so many people who bear the surname Lý in this realm, yet none possess have the warm heart like yours, Commander. You are now in charge of the national guard. If it is not you who governs the empire, then no one will. I'm in my 70s now, and simply want a peaceful death. However, I just wanna see your morality turn into the kingship, which is a once-in-a-thousand-years chance." From that moment, Công Uẩn developed the idea to rise to the throne being held by the Lê clan, but he feared that the words of Patriach Vạn Hạnh would be exposed publicly, so he asked his brother to hide Vạn Hạnh in Tiêu Sơn. By that time, public sentiment had already rallied around Công Uẩn.
Aware of the kapok tree prophecy, Lê Long Đĩnh once ate a pear (Vietnamese: lê/quả lê) and found a jambos (Vietnamese: lý/quả lý) seed inside, an omen that convinced him of the prophecy. The emperor then ordered his men to secretly murder people bearing the surname Lý, but Lý Công Uẩn still remained unharmed as if nothing had happened. Palace attendant Đào Cam Mộc, who had already known of Công Uẩn’s ambition for kingship, tried to taunt Công Uẩn into taking the throne during a private, one-on-one conversation. Công Uẩn was pleased by that and pretended to scold Cam Mộc for saying so, then threaten to expose his "treason words" to the royal court, but those were merely Công Uẩn's ruse for Cam Mộc to prove his commitment. Cam Mộc replied at ease: "I simply based on the Mandate of Heaven and the public sentiment to say so. If you want to report my words to the court, feel free to do so – I'm not afraid of dead." Công Uẩn replied: "I can't bear to do that. But I'm scared of your words might be exposed, so I just say this as a warning." Cam Mộc then discussed that idea with the empress dowager to enthrone Công Uẩn. The next day, Cam Mộc persuaded Công Uẩn to ascend the throne, saying: "All then people in the realm know the Lý clan has begun a big dream, the prophecy is absolutely true and no one can conceal it. Let us turn that adversity into fortune in just one day. It's the Mandate of Heaven, why are you still worried and delaying ?". Công Uẩn replied: "I fully get your idea, which is no different from Vạn Hanh's. So what should we do if those words are true ?". Cam Mộc continues: "Commander, you are a man with a warm heart who already commands public support. In those days, the realm was exhausted and oppressed. You should take advantages of that to comfort the nation, then people will rally around you, like water cascading from a waterfall, no one will be able to stop it !"
In 1009, emperor Lê Long Đĩnh, who had already developed serious illnesses due to his hedonistic lifestyle, had to lie down while listening to officials’ reports, while folk stories claim his hemorrhoids leads to his lying down during court affair. Incapacitated by declining health, Long Đĩnh watched helplessly as people launched a propaganda campaign that nurtured belief in the inevitability of Lý Công Uẩn becoming king. Since news of the upcoming regime change to the Lý clan had spread throughout the realm, Đào Cao Mộc felt rushed and discussed that idea with the royal court, which gained strongly support from all of them. Emperor Long Đĩnh died on 19th November 1009 under the wrath of the people because of his brutality and cruelty during his reign. Two day after his death, the royal court declared: "Millions of people in realm are divided, and harbor hatred toward the royal court due to the tyranny of the late emperor. No one wished to see the throne pass to his descendants; instead, they desired it to be bestowed upon the Commander of the Palace. If we don't enthrone the Commander at this moment, can we truly expect to keep our heads when chaos or crisis arises ?". The royal court then escorted Công Uẩn to the main hall and proclaimed him emperor. All mandarins knelt and exclaimed: "Long live the king!", after which they bestowed upon him his regnal name: "Phụng Thiên Chí Lý ứng Vận Tự Tại Thánh Minh Long Hiện Duệ Văn Anh Vũ Sùng Nhân Quảng Hiếu Thiên Hạ Thái Bình Khâm Minh Quang Trạch Chương Minh Vạn Bang Hiển Ứng Phù Cảm Uy Chấn Phiên Man Duệ Mưu Thần Trợ Thánh Tri Tắc Thiên Đạo Chính Hoàng Đế". The incident in which Công Uẩn accepted the regnal title of more than 50 words was criticized by historian Ngô Sĩ Liên in Đại Việt sử ký toàn thư: "The Book of Documents gave emperor Yao the title Fangxun (放勳) and emperor Shun the title Chonghua (重華). According to custom, the subjects bestowed regnal titles based on the emperors’ virtues, and even then the titles were no more than ten characters long. However, in this case, the subjects submitted a regnal title of 50 words, something without precedent in historical records and clearly an act of flattery. Emperor Lý Thái Tổ accepted it without objection, which suggests that he indulged such praise, showed off and boasted so that no one in the future could surpass him. This was improper. His successor, Emperor Lý Thái Tông, also adopted a regnal title of nearly 50 words, repeating the same practice."
Lý Công Uẩn ascended the throne on 21st November 1009, officially established the Lý dynasty. Historians also named his dynasty the Later Lý to distinguish it from the Anterior Lý of Lý Nam Đế. After his ascension to the throne, Lý Công Uẩn named his era "Thuận Thiên" (順天) meaning "Accordance with Heaven['s Will]". He posthumously conferred the title of Duke of Hiển Khánh on his father, Minh Đức Empress Dowager on his mother; and conferred the title Duke of Vũ Đạo on his uncle, Duke of Vũ Uy on his elder brother, and Duke of Dực Thánh on his younger brother. He established six empresses; his eldest son, Lý Phật Mã, was appointed Crown Prince. His other sons were also conferred the title of duke. Đào Cam Mộc was conferred the title of Marquis of Nghĩa Tín and was married to princess An Quốc (daughter of Công Uẩn). Lý Bảo Hòa, another princess of Công Uẩn, was married to the chieftain Giáp Thừa Quý. This marriage marked the beginning of the heqin tradition in Vietnamese feudal dynastic history, in which the emperor's princesses were married to chieftains in order to secure their loyalty to the royal court.
Based on the basic annals, the enthronement of Lý Công Uẩn and the dynastic transition occurred without civil war. However, according to An Nam chí lược, in 1009, when Lê Long Đĩnh died and his crown princess was still a minor child, his two brothers Lê Minh Đề and Lê Minh Xưởng launched a military campaign for the throne, only to be killed by Công Uẩn.
In Đại Việt sử ký tiền biên, historian Ngô Thì Sĩ recorded a conspiracy theory circulating in the realm, yet found no solid evidence to support the allegation that Lý Công Uẩn poisoned Lê Long Đĩnh to seize the throne.
"Some people say the Duke of Khai Minh is fiercely aggressive and ruthless, while Lý Thái Tổ's status and prestige are steadily rising, and all court officials are his close aids. Lý Thái Tổ is deeply outraged by the murder of emperor Long Việt to usurp the throne by the Duke of Khai Minh. While the Duke of Khai Minh is sick, Thái Tổ sends people to poison him then covers up this incident, so there are no historical records of it. If this was indeed the case, it may have been regarded as the will of God and an act of karmic retribution. Therefore, this account is recorded only as an appendix as a deterrent"Revisiting the story of the kapok tree prophecy which led to the dynastic transition, historian Ngô Thì Sĩ in Việt Sử Tiêu Án concluded that Patriarch Vạn Hạnh simply based on a natural incident when a lightning struck a kapok tree to make up an entire prophetic poem, cloaking it in mysticism to manipulate public sentiment. Ngô Thì Sĩ also pointed out that in the kapok tree prophecy, the lines from "Chấn cung xuất nhựt" till the end are all ambiguous, which later generations rashly interpreted to justify their treasonous acts; such a terribly made up prophetic poem led to the chaotic regime changes. Comments from Khâm định Việt sử Thông giám cương mục also conclude that the kapok tree prophecy is simply the reluctant interpretation of the Lý dynasty historians for the enthronement of Lý Công Uẩn, making it sound mystical, and is also the parody of the omen associated with the enthronement of Zhao Kuangyin, according to Book of the History of Song. By that, Chai Rong was reading a book collection after a northern campaign when he found a wooden plaque that said "The inspector-general is to be emperor". Feeling uneasy and believing it to be an omen, Chai replaced the incumbent Inspector-General of the Palace Command, Zhang Yongde, with Zhao Kuangyin. As the omen seemed to foretell, Zhao Kuangyin later became emperor after the Chenqiao mutiny, established the Song dynasty.