Zhang (732-774), formerly known as Gui Ling, was named Xuanzhenzi. Piren, Zhang Cun, Lighthouse Township, Qimen County, is a native of Jinhua, Zhejiang, and a native of Changxing, Huzhou, Tang Fang. Zhang was able to read at the age of three, fussed at the age of six and enlightened at the age of sixteen. He has served as Hanlin waiting to be called, Sargingoway recording the army, and Nanpu County Commandant. Later, I felt the turbulence of Guanhai and the impermanence of life. When my mother and wife died one after another, I abandoned the official family and wandered the rivers and lakes. Tang Suzong once gave him a slave and a maid, calling them "fishermen" and "firewood green". Zhang then lived in seclusion with the handmaiden in the east and west Tiaoxi and Ruoxi areas of Taihu Lake basin, boating, floating in Sanjiang and enjoying fishing firewood.
In the 9th year of Tang Dali (774), Zhang went to Huzhou to visit Yan Zhenqing at the invitation of Yan Zhenqing, the secretariat of Huzhou. In winter and December of the same year, he and Yan Zhenqing accidentally fell into the water in Pingwangying Lake.
His works include Xuanzhenzi (volume 120) with 30,000 words, Dayi (volume 15), and five poems handed down from generation to generation.