According to Đại Việt sử ký toàn thư, in the seventh year of Thiên Thành era (1034),emperor Lý Thái Tông generated the order to everyone to call himself as "triều đình" (朝庭) (meaning: royal court) which is similar to Your Majesty. Until the rule of emperor Lý Thánh Tông, it converted to the title of "Vạn Thặng" (萬乘); the name derived from "Mencius": "一天萬乘" . Finally, Emperor Lý Cao Tông required all mandarin to call him as "phật"(佛)-Buddha.
In 1009, the Early Lê dynasty passed from flourish and downfall in 29 years with 3 Emperors Lê Đại Hành, Lê Trung Tông and Lê Ngọa Triều.The last emperor Lê Ngọa Triều died in 1009 after evil and brutal ruling in Đại Cồ Việt which made him and his dynasty becoming unpolular to civilians. According to some history records of Vietnam like Khâm định Việt sử Thông giám cương mục, Việt sử lược, Đại Việt sử ký toàn thư all proved that in October 1009, Lê Long Đĩnh died because of consequence of his licentious life . The crown prince of Lê Long Đĩnh was still very young and he could not take the power from his dad.Then,the conference by the members of royal court was held to discuss about the fate of nation.Finally, Lý Công Uẩn,the high position mandarin and aristocrat was chosen by Đào Cam Mộc and Vạn Hạnh buddhist monk to become the new emperor of Đại Cồ Việt.
The founder of the Lý, Lý Thái Tổ (Lý Công Uẩn) 李公蘊 has been said to have had origins from Fujian province somewhere in his paternal bloodline, while little is known about his maternal side except for the fact that his mother was a woman named Phạm Thị. Very few direct details about his parents are known, however, the ethnic Chinese background of Lý Công Uẩn, at least on his paternal side, was accepted by Vietnamese historian Trần Quốc Vượng.
The Lý dynasty was started by Lý Công Uẩn, a former temple orphan who had risen to commander of the palace guard, succeeded Lê Long Đĩnh of the Early Lê dynasty in 1009, thereby founding the Lý dynasty. He took the reign name Lý Thái Tổ. The early Lý emperors established a prosperous state with a stable monarchy at the head of a centralized administration. The name of the country was changed to Đại Việt in 1054 by Emperor Lý Thánh Tông.
after a year of enthronement,in 1010 Lý Thái Tổ started to move the capital from Hoa Lư(Ninh Bình) to Đại La(Hà Nội) and renamed it to Thang Long.he wrote the Edict on the Transfer of the Capital to announce his plan to move to the new place.