Former Liang
In 327, Zhang was born. Zhang's father was Zhang Jun (Duke Zhongcheng), who had become the ruler of Former Liang in 324. Zhang's mother was Lady Ma, a concubine of Zhang Jun. Zhang's elder half-brother was Zhang Zuo, whose mother was not Princess Yan.