Zhang Gongjin

Zhang Gongjin (594 - 632), courtesy name Hongshen, titled Duke of Tan, was an official and general during the Tang Dynasty of China. He played an important role in the Xuanwu Gate Incident in 626 which helped Emperor Taizong obtained the crown. He was a key general of Tang Dynasty during the campaign against Illig Qaghan of Tujue. Because of his contributions, he was listed as one of 24 founding officials of Tang Dynasty honored on the Lingyan Pavilion.
In history.
Zhang Gongjin was originally a low-ranked official under the warlord Wang Shichong. In 618, Zhang submitted to Tang Dynasty and became a follower of Li Shimin, the then Prince of Qin, who was in a rivalry against the crowned prince Li Jiancheng for the potential chance of becoming the next emperor. In 626, Li Shimin ambushed and killed Li Jiancheng at Xuanwu Gate. During this incident, Zhang Gongjin played a big role in stopping Li Jiancheng's reinforcement forces led by Feng Li, Xue Wanche and Xie Shufang from breaking through the Xuanwu Gate. Li Shimin soon became the new emperor (Emperor Taizong) after the incident.
During Emperor Taizong's reign, Zhang Gongjin was a military commander guarding Daizhou, an important city in the north of Tang empire. He managed to keep Daizhou safe during invasions of Tujue people. In 629, the steppe in the north, home of Tujue tribes, suffered from a serious winter storm. Zhang Gongjin thus suggested to launch a counter attack against Tujue. He listed five reasons why Tang should launch this attack. Emperor Taizong took his advise and sent out six troops, all under Li Jing's command, to attack Tujue. Zhang Gongjin was the vice chief commander under Li Jing during this campaign. The Illig Qaghan was captured by Tang dynasty in the following year, which marked the collapse of the Eastern Turkic Khanate. Because of his contributions in this campaign, Zhang was given the title Duke of Zou. He was then appointed to be the military commander of Xiangzhou. During his time in Xiangzhou, he gained reputation as a good governor.
Zhang Gongjin died in Xiangzhou in 632. In 639, Emperor Taizong promoted his title to be Duke of Tan. In 643, he was listed on the Lingyan Pavilion.
In folk legends.
In folk legends, Zhang Gongjin was a low-ranked officer under Luo Yi, the general guarding Youzhou in Sui Dynasty. Later, he joined the peasant uprising and became a leader of Wagang Army. After Wagang Army disbanded, Zhang Gongjin submitted to Tang Dynasty and became a general. During the war against Goguryeo, Zhang Gongjin was killed by the Korean general Yeon Gaesomun in the battle.
Family.
Grandfather: 
Father:
Sons:
Daughter:
Grandsons:
Notable Great Grandsons: