Two Old Puzzles
Two questions about early Vietnamese history have never had satisfying answers. The first is what the “Book of Heaven” (Thiên thư 天書) was (“Book of Heaven” is how this term has often been translated, but I will use a different term below). It appears most famously in the poem popularly attributed to Lý Thường Kiệt in 1076, which says that the borders of the Southern Kingdom were “clearly fixed in the Book of Heaven” (截然分定在天書).
The second is what kind of rule the early Lý dynasty (1009–1225) practiced. Was it “Buddhist,” “Daoist,” or “Confucian”? Scholars have argued for each, because the sources show Lý rulers building Buddhist temples, Daoist palaces, and a Temple of Literature, often in the same years.
My argument in this post is that both puzzles become much easier to solve once we look at what was happening in China at the moment the Lý came to power. The Lý dynasty was founded in 1009. The year before, in 1008, Song Zhenzong (r. 997–1022), the third Song dynasty emperor, announced that a “Heavenly Text” (same as above, Tianshu/Thiên thư 天書) had descended from Heaven, and he then performed the feng 封 and shan 禪 sacrifices at Mount Tai (泰山).
The best guide to what Zhenzong was doing is a fantastic 2021 book by Chang Wei-ling 張維玲, From the Age of the Heavenly Texts to the Guwen Movement: The Political Process of the Early Northern Song (從天書時代到古文運動:北宋前期的政治過程). Chang explains both the intellectual logic behind the Heavenly Texts, as I think it’s best to translate that term at that time, and what actually happened at the Song court. Read alongside the Vietnamese sources, her book shows us the cultural world that the early Lý were clearly participating in.
In a forthcoming chapter on Confucianism in early imperial Vietnam, I argue that the Lý was at its core a Confucian state in which Buddhism played a subordinate role, just as it did at the Song court (Kelley 2026). Ye Shaofei 叶少飞 has shown that the Lý valued Buddhism but governed through Confucian statecraft, and that Lý rulers took prognostication texts and omens very seriously (Ye 2019). And Phạm Lê Huy has shown, hall by hall and gate by gate, that the Lý capital at Thăng Long drew on the Song capital at Kaifeng (Phạm Lê Huy 2012). Chang’s book explains why these findings fit together.
What Chang Wei-ling Shows about the Heavenly Texts
The usual story about the Heavenly Texts is that they were a forgery. In 1004 the Song signed the Treaty of Chanyuan with the Khitan Liao, and the official, Wang Qinruo 王欽若, is said to have told Zhenzong that it was a humiliating “covenant signed beneath the city walls.” To restore his prestige, the story goes, Zhenzong staged a series of fake revelations.
Chang shows that this story only began to circulate later in the reign of the subsequent Song dynasty emperor, Renzong (r. 1022–1063), after Zhenzong was dead. That story has hidden what the Heavenly Texts were really about. Chang explains the historical and intellectual background in great depth, and the following four points are key:
Great Peace. From the beginning of the dynasty, Song rulers wanted to show that they had escaped the short-lived dynasties of the Five Dynasties period. In Han and Tang political culture, the clearest sign of a lasting dynasty was the performance of the feng and shan sacrifices at Mount Tai. However, these could only be performed once a ruler had “brought about Great Peace” (致太平). That meant unity at home, no war abroad, good harvests, and auspicious omens from Heaven. Taizu and Taizong, the first two Song dynasty emperors, both wanted to perform the feng and shan sacrifices but never could. Zhenzong, Chang argues, was carrying out his father’s wish to do so.
The River Chart and the Luo Writing. The idea behind the Heavenly Texts came from the apocrypha (讖緯), which Han and Tang commentators had woven into the official commentaries on the Classics. In that tradition, a ruler who received the Mandate was presented with the “Yellow River Chart and Luo River Writing” by dragons, turtles, and other numinous creatures. These were forms of a Heavenly Text, that is, a document from Heaven confirming a ruler’s Mandate. Zhenzong had shown a longing for these documents well before 1008. He even named a hall for his father’s writings the Longtu Hall (龍圖閣), the “Dragon Chart” Hall.
Tang Xuanzong as the model. The second source of the Heavenly Texts was Daoism, and here the model was the Tang dynasty emperor Xuanzong (r. 712–756). In 741 an official claimed that Laozi had appeared to him with a message for Xuanzong: “The realm is at Great Peace, and the sagely longevity is without limit” (天下太平,聖壽無疆). A numinous talisman was then “found.” Xuanzong also honored Laozi as the dynasty’s Sage Ancestor and renamed Laozi’s temple in Chang’an the Taiqing Palace (太清宮). Zhenzong copied this pattern closely, and people at the time said so. In 1013 the official Sun Shi 孫奠 wrote that “outside there is much talk that Your Majesty imitates Tang Minghuang [i.e., Xuanzong] in everything.”
Chang traces this choice of model to a particular group of men. Xu Xuan 徐鉉 was a former official of the Southern Tang who admired Xuanzong’s Daoist rule. His followers Wang Qinruo, Du Gao 杜鎬 and Chen Pengnian 陳彭年 designed the rites of the Dazhong Xiangfu 大中祥符 era (1008–1016) [lit., Great Central Auspicious Talisman] of Song Zhenzong. Asked what the River Chart and Luo Writing really were, Du Gao answered that they were “the sages using the way of the spirits to establish a teaching” (聖人以神道設教).
What actually happened. After a first Heavenly Text came down in the first month of 1008, a second came down at Mount Tai, and Zhenzong performed the feng and shan sacrifices there. In 1011 he sacrificed to Sovereign Earth at Fenyin, as Xuanzong had done. In 1012 the dynasty’s own Sage Ancestor, Zhao Xuanlang, descended to meet him. Temples were built across the empire, and Zhenzong made a pilgrimage to Laozi’s Taiqing Palace at Bozhou in 1014. Under this new order, Chang points out, the Confucian High God of Vast Heaven (昊天上帝) was placed below the Daoist deities.
How it ended. Chang’s larger argument is that what she calls “the Age of the Heavenly Texts” began by using the Confucian Classics but ended by undermining Confucian rule. After Zhenzong died in 1022, officials slowly took apart the language of “Great Peace.” In the reign of his successor, Renzong, writers of the guwen 古文 (ancient text) movement such as Sun Fu, Shi Jie and Ouyang Xiu attacked the Heavenly Texts. They went further and rejected the very idea that the River Chart and Luo Writing were documents of the Mandate.
For a historian of Vietnam, three things stand out. A Heavenly Text was a revealed document proving that a ruler had the Mandate and had brought Great Peace. It came wrapped in a Daoist cult modelled on Tang Xuanzong. And it all happened in the years 1008 to 1016, exactly when the Lý dynasty was being founded.
The Vietnamese Courts were Part of It
It would be one thing to say that the Lý had heard about the Heavenly Texts. However, the sources show something more direct. The Song included the rulers of Đại Cồ Việt in the celebrations, and Vietnamese envoys were at the Song court while they took place.
Further, an argument over Great Peace went back to the beginning of the Song. When Đinh Bộ Lĩnh named his era Thái Bình 太平 (Great Peace) in 970, the Song sent him a letter. It said that the sage dynasty now covered the myriad states and that “the work of Great Peace” was complete, and it threatened to destroy his kingdom if he resisted (The Đại Việt sử lược dates the letter to 971; the Đại Việt sử ký toàn thư moves it to 980.). Great Peace, in other words, was a claim to rule that both courts were making.
In 1007 the Early Lê dynasty ruler’s envoy Lê Minh Xưởng 黎明昶 reached the Song capital, where he attended a banquet in the Hanguang Hall (含光殿). According to the Đại Việt sử ký toàn thư, he did not return home until the spring of 1009, bringing the Buddhist canon with him. He was therefore in Kaifeng through 1008, the year of the first Heavenly Text and the feng sacrifice at Mount Tai.
The Songshi (History of the Song) records what the Vietnamese rulers received:
1008: when the Heavenly Text descended, Lê Long Đĩnh was given the title “Meritorious Minister Who Assists and Upholds” (翊戴功臣). After the eastern feng he was made “Joint Manager of Affairs with the Secretariat-Chancellery” (同平章事).
c. 1010: Lý Công Uẩn asked for Song Taizong’s calligraphy [Zhenzong’s father whose writings were honored in the “Dragon Chart” Hall] and was given a hundred scrolls.
1011: Lý envoys brought tribute at the time of the sacrifice to Sovereign Earth at Fenyin, and when the rite ended Lý Công Uẩn was made “Joint Manager of Affairs with the Secretariat-Chancellery” (同平章事). The chief envoy, Lương Nhậm Văn 梁任文, later became Grand Preceptor under Lý Thái Tông.
1012: when the Sage Ancestor descended, Lý Công Uẩn too was given the title “Meritorious Minister Who Assists and Upholds” (翊戴功臣).
So, the Early Lê and then the Lý were named participants in Zhenzong’s project. Their envoys saw its rites, and their rulers were honored each time a new revelation came down. That is the setting in which the Lý dynasty was founded.
The Lý Founding as an Age of Great Peace
With Chang’s book in mind, the founding of the Lý looks like a local version of what Zhenzong had just done. It began with a revealed text that promised Great Peace.
In 1009 lightning struck a kapok tree in Lý Công Uẩn’s home village, and the marks it left were read as words. In the earliest version, in the Việt sử lược, the text ends: “within six or seven days, Great Peace [will come] to the realm” (六七日間,天下太平). The monk Vạn Hạnh explained that it meant the Lê would fall and the Lý would rise. Đào Cam Mộc then urged Lý Công Uẩn to act because “the prophecy charts have already appeared” (圖讖已見).
This is the same idea that Chang describes: writing from Heaven proving that a new ruler has the Mandate. It even uses the same term, the prophecy chart 圖讖, that links such texts to the River Chart and the apocrypha. And it promises exactly what Laozi had promised Tang Xuanzong, and what the Song had been claiming: “Great Peace All Under Heaven” (Thiên hạ Thái bình 天下太平).
When Lý Công Uẩn took the throne, his officials gave him a title that put the claim in plain words. It began “Receiving Heaven, Perfect Order, Responding to the Cycle” (奉天至理應運) and included the words “Great Peace All Under Heaven” (Thiên hạ Thái bình 天下太平). The new dynasty was declaring, from its first day, that Great Peace had arrived.
What followed in the next few years matches the Dazhong Xiangfu era era (1008–1016) item by item:
1010: the new capital at Thăng Long was given an east gate named Tường Phù 祥符 (Auspicious Talisman), the name of Zhenzong’s era (Dazhong Xiangfu). Kaifeng had a Xiangfu Gate on the east side of its palace too. It was given that name in 1008 because the first Heavenly Text had come down there. Phạm Lê Huy, who found this match, notes one difference: the Kaifeng gate stood inside the palace city, while Thăng Long’s was a gate of the outer citadel (2012, 228).
1011: Lý Thái Tổ built a Thái Thanh Palace (太清宮), the name of Laozi’s temple (Taiqing gong), and a Hàm Quang Hall (含光殿), the name of the hall where his predecessor’s envoys had been banqueted. Kaifeng’s banquet hall carried the name Hanguang from 990 until 1015 (Phạm Lê Huy 2012, 225).
1016: he sacrificed from afar to the famous mountains.
1021: his birthday became the Thiên Thành Festival (天成節), the “Festival of Heaven’s Completion.” Naming the ruler’s birthday as a festival was an imperial practice that began with Tang Xuanzong in 729, and Song Zhenzong’s birthday was the Chengtian Festival (承天節), the “Festival of Receiving Heaven.” The Lý name echoes the Song one but goes a step further. Chengtian (承天) comes from the Yijing, where Earth “receives Heaven,” and describes a ruler accepting Heaven’s Mandate. Thiên Thành (天成) comes from the Shangshu line “the earth was set in order and Heaven’s work was completed” (地平天成), which describes the ordered world after Yu tamed the floods. It is a claim that Great Peace has already arrived.
1029: Lý Thái Tông renamed the main hall of the palace the Thiên An Hall (天安殿) [lit., Heavenly Peace]. Kaifeng’s main hall had been given that same name in 1015, in the Xiangfu era. As Phạm Lê Huy shows, the only earlier Thiên An Hall was in Northern Wei Luoyang, which had nothing to do with it (2012, 209). In the same year a pavilion was built above the king’s sleeping hall. The Đại Việt sử ký toàn thư calls it the Long Đồ Pavilion (龍圖閣), the name of Zhenzong’s “Dragon Chart” Hall; the Đại Việt sử lược calls it simply the Long Pavilion (Phạm Lê Huy 2012, 226).
1030: Lý Thái Tông built a Thiên Khánh Hall (天慶殿) for government business. Tianqing (天慶), “Heavenly Celebration,” was the name of the festival Zhenzong created in 1008 for the anniversary of the day the first Heavenly Text came down. In 1009 he also ordered every prefecture to build a Tianqing Temple (天慶觀).
There are differences between what the Lý and Song did; however, there are also extremely clear parallels. Further, the logic was the same: a revealed text, a claim of Great Peace, and a capital whose gates and palaces carried the names of the new age.
Buddhist, Daoist, or Confucian?
This also helps with the second puzzle. Asking whether early Lý rule was Buddhist, Daoist, or Confucian assumes that a ruler had to choose. Chang’s book shows that Zhenzong did not. His Age of the Heavenly Texts drew on the Confucian Classics and their apocryphal commentaries for its theory of the Mandate and of Great Peace. It drew on Daoism for its gods, its palaces, and its Sage Ancestor. And the Song court went on patronizing Buddhism; it was the Song that gave the Vietnamese courts the Buddhist canon.
The early Lý did the same thing in the same years. In 1011 Lý Thái Tổ built the Daoist Thái Thanh Palace on the left side of the citadel and the Buddhist Vạn Tuế Temple on the right (城内左起大清宫,右起萬歳寺). In 1016 he ordained more than a thousand people in the capital as monks and Daoist priests (僧道). In 1031 Lý Thái Tông built 950 “temples and Daoist sanctuaries” (寺觀), and that same year Daoists received their registers at the Thái Thanh Palace.
The pattern continued for more than a century:
Daoist: a Cảnh Linh Palace (景靈宮, the name of the Song palace for the Sage Ancestor), completed 1088; Kaiyuan Daoist temples, 1101–1102; a Five Peaks temple, 1133.
Confucian: a Temple of Literature with images of Confucius and the Duke of Zhou, 1070; Lý Thái Tông’s refusal of extra titles in 1039, citing the age of Yao and Shun; a round altar for sacrifice to Heaven, 1152.
Revealed writing: a steady stream of turtles bearing characters, such as “The Kingdom is at Peace” (國土安寧, 1125) and “One Heaven, Eternal Sage” (一天永聖, 1135).
Royal titles: Lý Anh Tông’s title began “Embodying Heaven, Following the Way” (體天順道), almost the same as Song Renzong’s “Embodying Heaven, Modeling on the Way” (體天法道).
And Great Peace stayed the goal. In 1045 the Lý built a gold-decorated “Great Peace carriage” (太平車). In 1054 Lý Thánh Tông named his era Long Thụy Thái Bình 龍瑞太平. In 1068, after white elephants were presented, he named a new era Thiên Huống Bảo Tượng 天貺寶象. Tiankuang 天貺, “Heaven’s gift,” was the name of Zhenzong’s festival for the day the second Heavenly Text came down at Mount Tai.
In 1118 Lý Nhân Tông wrote on a stele, after sweet dew fell, “Great Peace in the realm, long life to the Sage’s person” (天下太平聖躬萬歲). That is almost the message Laozi gave Tang Xuanzong in 741.
So, the answer to the question is “all of the above,” but that is not a dodge. Early Lý rule was organized around a claim that Heaven had given the dynasty its Mandate and that the dynasty had brought Great Peace. Buddhism, Daoism and the Confucian Classics were all used to make that claim, just as they were at Zhenzong’s court.
So What was the Thiên thư?
We have two main sources for the Lý. The Đại Việt sử lược was compiled in the Trần period. The Đại Việt sử ký toàn thư was put together by Ngô Sĩ Liên in the fifteenth century from earlier histories. Comparing them tells us a good deal about how this material was handled.
The Đại Việt sử lược is the more explicit of the two about Great Peace, and the simpler about prophecy. Its tree text promises Great Peace in six or seven days. The Đại Việt sử ký toàn thư version says six or seven years, and it adds two lines, 東阿入地,木異再生. Vạn Hạnh’s explanation reads them as foretelling the Trần, the northern invasions, and a Lê revival. Those are later events, so the lines must be later additions.
The word 天書 itself is a different matter. In the Lý period it appears only twice, and both times only in the Đại Việt sử ký toàn thư: in the 1076 poem, and in an account of a turtle in 1134 whose shell read “The Heavenly Text descends to show: long life to the Sage” (天書下示聖人萬歲). Neither passage is in the Đại Việt sử lược, whose entry for 1134 mentions only a dead tree flowering.
The Đại Việt sử lược does, however, record something very close to it. In the spring of 1076, the same year as the poem and a few months before the Song armies set out against Đại Việt, it says that a yellow dragon appeared by the king’s boat and that “a green turtle appeared carrying a chart” (青龜負圖以見). A turtle carrying a chart is the classic image of the Luo Writing, the very document that Zhenzong’s Heavenly Texts were meant to renew. So even the earlier history shows the Lý court claiming that year that Heaven had sent it a document of its Mandate.
We cannot yet say when the poem was written. But we no longer need to wonder what a “Heavenly Text” would have meant to someone at the Lý court. In the eleventh century the term had a precise meaning. It was a document sent down by Heaven to confirm that a ruler held the Mandate and had brought Great Peace, a modern version of the River Chart and the Luo Writing. The Lý and the Early Lê before them had been honored by the Song because of one.
Read that way, the 1076 poem makes a pointed claim. The Song emperor had his Heavenly Text, and so did the Southern Emperor. The borders of the southern realm were not granted by the Song; they were fixed by Heaven’s own document, in the same way that Heaven had confirmed the Song.
Looking North to Understand the Lý
Scholars have often treated the early Lý as a puzzle to be solved from the Vietnamese sources alone. I think we understand them better if we picture a court that was watching what was happening in China and then acting in similar ways. In 1008 the Song announced a Heavenly Text and an age of Great Peace. In 1009 the Lý came to power with a text from Heaven that promised Great Peace, and over the next few years they gave their capital the names of the Xiangfu age.
That of course does not make the Lý mere imitators. They took the logic of the Heavenly Texts and used it to claim a Mandate of their own, while presenting themselves to the Song as loyal supporters of Zhenzong’s project. Some of it lasted a long time. In 1476 Lê Thánh Tông was still praying for rain to the Jade Emperor under the title that the Song had created for him in the Xiangfu era.
Chang Wei-ling wrote her book to explain the politics of the early Northern Song, not the history of Đại Việt. But by showing us what the Heavenly Texts meant and how they worked, she has also given historians of Vietnam the key to two of our oldest puzzles. I plan to develop this into a longer paper.
Sources
Chang Wei-ling 張維玲, 從天書時代到古文運動:北宋前期的政治過程 [From the Age of the Heavenly Texts to the Guwen Movement: The Political Process of the Early Northern Song].
[Đại] Việt sử lược 越史略 (Siku quanshu edition), Wikisource.
Đại Việt sử ký toàn thư 大越史記全書, outer annals 1–5 and basic annals 1–15.
Songshi 宋史, juan 488, “Jiaozhi” 交阯.
Kelley, Liam C. 2027. “Confucianism in Early Imperial Vietnam.” In Cambridge History of Confucianism, edited by Kiri Paramore, 677–714. Cambridge: Cambridge University Press.
Phạm Lê Huy. 2012. “Ảnh hưởng của mô hình đô thành Lạc Dương và Khai Phong đến quy hoạch hoàng thành Thăng Long thời Lý-Trần” [The influence of the Luoyang and Kaifeng capital models on the plan of the Thăng Long imperial citadel in the Lý-Trần period]. Tạp chí Nghiên cứu và Phát triển 8–9 (97–98): 205–39.
Ye Shaofei 叶少飞. 2019. “越南李朝的儒术、谶纬与科举之关联” [The connections among Confucian statecraft, prognostication and the examinations in Vietnam’s Lý dynasty]. 越南研究 [Vietnam Studies] 2019 (1): 138–60.