 In 597, Yang Kuang, later Emperor Yang, the second son of Emperor Wen of the Sui Dynasty, ordered four new temples in the capital Chang'an, and invited Jizang to be in charge of one of them, called Huiri Temple ().Jizang accepted, despite the fame of Yang's harshness.Zhiyi (538–597 CE), a respected figure of the Tiantai school, had accepted to become monk at another one of the new temples, and Jizang sought to visit him, but unfortunately he died before Jizang was able to meet him.