The pagoda was built by Emperor
Ly Thai Tong, who ruled from 1028 to 1054. According to the court records, Ly Thai Tong was childless and dreamt that he met the
bodhisattva Avalokiteshvara, who handed him a baby son while seated on a lotus flower. Ly Thai Tong then married a peasant girl that he had met and she bore him a son. The emperor constructed the temple in gratitude for this in 1049 having been told by a monk named Thiền Tuệ to build the temple, by erecting a pillar in the middle of a lotus pond, similar to the one he saw in the dream.