the Red River Delta. Thánh Tông found interest on a young girl named Ỷ Lan who ignored the king's hubbub while continued working on the mulberry farm, and then took her as queen. Three years later she gave birth for prince Lý Càn Đức. It appears that it was Lý Nhật Tôn who first conferred upon Lý Công Uẩn and Lý Phật Mã posthumous titles derived from Chinese dynastic usage. In order to educate people with Chinese classics, in 1070 Thánh Tông authorized the construction of Văn Miếu, the Temple of Literature, a scholarly shrine and archive in Thăng Long that was stocked with clay statues of the Duke of Zhou and of Confucius and his followers and paintings of seventy-two other disciples of Confucius. Thánh Tông also relied on his chief minister Lý Đạo Thành to educate his four-year-old son Lý Càn Đức in Chinese classics. Thánh Tông also reorganized the royal army, equipped them with cavalries and catapults. In 1068, Thánh Tông ordered the war boats to be repaired. In making plans for the Champa campaign he relied on Lý Thường Kiệt (1019–1105), the ranking military officer at court. Foreign relations After Nong Zhigao's rebellion was suppressed in 1055, the Guangnan West Circuit Fiscal Commissioner, Wang Han (fl. 1043–1063), feared that Nong Zhigao's kinsmen Nùng Tông Đán intended to plunder the region after he crossed the Song border in 1057. Wang Han took a personal visit to Nùng Tông Đán's camp and spoke with Nong Zhigao's son, explaining that seeking "Interior Dependency" status would alienate them from the Vietnamese, but if they remained outside of China proper they could safely act as loyal frontier militia. A local Song official, Xiao Zhu, agitated for military action against Thăng Long to settle the border question. They secretly trained military units and sheltered refugees from the Vietnamese side, including army deserters. The contradiction between the pacific pronouncements of the Song court and the devious, provocative policy of local Song officials angered Lý Nhật Tôn. In 1059, Lý Nhật Tôn to launch a punitive attack across the border, declaring his hate for "Sung's untrustworthiness". After a year or so of attacks and counter-attacks, in which the local Sung officials fared poorly, a parley between Sung and Vietnamese envoys produced a temporary calm as some activist Sung officials were dismissed and the Sung court officially accepted Thăng Long's explanation of events. According to