Zhang Cheng was the elder son of Zhang Zhao, a senior statesman who served under Sun Quan, the founding emperor of Eastern Wu. At a young age, he was known for being well read and talented in scholarly arts. He was also a close friend of Zhuge Jin, Bu Zhi and Yan Jun. When Sun Quan still held the nominal appointment of General of Chariots of Cavalry in the late Eastern Han dynasty, he recruited Zhang Cheng to serve as an assistant official in the west bureau of his office. Later, he promoted Zhang Cheng to the position of Commandant of the West Section of Changsha Commandery. During this time, he pacified some localtribes in Changsha Commandery and managed to recruit 15,000 of them to serve in the Wu army. Some time later, Zhang Cheng was promoted to General of Vehement Might and put in command of 5,000 troops. Sun Quan appointed him as the Chief Controller of Ruxu, a Wu garrison strategically located along the Yangtze River at the north of present-day Wuwei County, Anhui. He also enfeoffed Zhang Cheng as a Marquis of a Chief District. Zhang Cheng was known for his bold, courageous and loyal personality. Apart from these traits, he was also known for being a good judge of character. He spotted talents such as Cai Kuan and Xie Jing and promoted them accordingly. Cai Kuan later rose the position of Minister of the Guards in the Wu government, while Xie Jing became the Administrator of Yuzhang Commandery. When Zhuge Ke, the eldest son of Zhang Cheng's friend Zhuge Jin, was still a youth, he received high praise from many people for his extraordinary talents. Zhang Cheng, however, accurately predicted that Zhuge Ke would bring doom to his family one day. Throughout his life, Zhang Cheng was known for his passion for learning. He constantly sought opportunities to enrich himself with more knowledge and skills, and attracted numerous visitors to his residence. He died in 244 at the age of 66, and was honoured with the posthumous title "Marquis Ding".
Family
Zhang Cheng's son, Zhang Zhen, inherited his father's peerage as a Marquis of a Chief District. After Zhang Cheng's first wife died, his father Zhang Zhao suggested that he marry his friend Zhuge Jin's daughter. Zhang Cheng initially declined because he felt awkward about becoming his friend's son-in-law, but eventually agreed after Sun Quan persuaded him to do so. Zhang Cheng and Zhuge Jin's daughter had a daughter, who married Sun He, the third son of Sun Quan. Sun Quan often reminded Sun He to be courteous towards Zhang Cheng and paid due respect as a son-in-law. Zhang Cheng's son, Zhang Zhen, was implicated and purged in the aftermath of Zhuge Ke's downfall because he was a maternal nephew of Zhuge Ke. Zhang Cheng also had another daughter, who married Lu Kang and bore Lu Jing. She was also purged in the aftermath of Zhuge Ke's downfall because she was his maternal niece.