Zhang Liang is depicted in the Wu Shuang Pu (無雙譜, Table of Peerless Heroes) by Jin Guliang.
To avenge the fall of his native state, Zhang Liang dedicated his efforts to hiring assassins to kill the First Emperor of Qin.
He managed to find a man with great physical strength to help him, and had an iron hammer weighing 120 catties (roughly 160 lbs.
As a wanted fugitive by the Qin government, Zhang Liang travelled to Xiapi and stayed there for some time, using fake identities to evade the authorities.
The book was titled The Art of War by Taigong (太公兵法) and believed to be the Six Secret Teachings by Jiang Ziya, while some called it Three Strategies of Huang Shigong.
Zhang Liang rallied about 100 men to start a rebellion as well, but his force was too weak, so he led his followers to join Jing Ju, a pretender to the throne of the former Chu state.
The following year, Xiang Liang installed Mi Xin as King Huai II of Chu after eliminating Jing Ju.
Han Cheng's armies attempted to capture Qin cities that were formerly Hán territories but did not achieve much success and engaged in guerrilla warfare for about a year.
In 207 BC, the combined forces of Liu Bang and Han Cheng conquered Yangzhai (present-day Yuzhou City, Henan), the former capital of the Hán state.
For example, at the battle of Yao Pass, Zhang Liang suggested tricking the Qin commander into surrendering by bribing him with gifts.
Upon entering the Epang Palace in Xianyang (the Qin capital), Liu Bang was strongly tempted by the riches it housed and wanted to stay there forever.
During this period of time, Liu Bang heeded Zhang Liang's advice and governed Guanzhong with benevolence, restoring peace and stability, and forbidding his men from pillaging the cities and harming the common people.
Liu Bang left the banquet later on the pretext of going to the latrine and was received by Xiahou Ying, who had been waiting nearby on Zhang Liang's instruction.
Although Han Cheng was the king of Hán, Xiang Yu did not permit him to govern his kingdom and forced him to accompany him back to his Western Chu's capital of Pengcheng (present-day Xuzhou, Jiangsu).
Liu Bang followed Zhang Liang's advice: he sent Xiao He to persuade Ying Bu to join him; contacted Peng Yue and allied with him; and allowed Han Xin to lead part of his army to attack other territories on the northern front.
By late 203 BC, Zhang Liang saw that the tide had turned in favour of Liu Bang, as Xiang Yu had been surrounded on three sides.
Together with Chen Ping, Zhang Liang suggested to Liu Bang to renounce the Treaty of Hong Canal and use the opportunity to eliminate Western Chu.
However, at the Battle of Guling, Liu Bang was defeated by Xiang Yu because the expected reinforcements from Han Xin and Peng Yue did not arrive.
Zhang Liang explained to Liu Bang that Han Xin and Peng Yue did not mobilise their troops because they did not have their fiefs yet, even though they had received their titles of vassal kings.
Two months later, as Zhang Liang predicted, Han Xin and Peng Yue arrived with their armies and formed a coordinated attack on Western Chu together with Liu Bang's force, defeating Xiang Yu at the Battle of Gaixia in 202 BC.
Following the establishment of the Han dynasty, Zhang Liang remained as a key advisor to Gaozu even though he did not receive any formal appointment as a government minister.
In late 201 BC, Gaozu rewarded his subjects who contributed to the dynasty's founding and he conferred the title of "Marquis of Liu" on Zhang Liang.
According to the Collection of Lost Records of Immortals (仙传拾遗), after Zhang Liang helped Liu Bang establish the Han dynasty, he practiced self-cultivation using the book given to him by Huang Shigong.
The Tianshou Temple in Chen County (now southeast of Kaifeng, Henan Province) is another place where Zhang Liang is worshipped.
When Sun Wukong found himself in a heated argument with his master, Tang Sanzang, he decided to part ways and soar through the realms.
[6][7] The Dragon King recounted, "At the end of the Qin dynasty, Zhang Liang encountered Huang Shigong on a bridge.
After achieving peace, Zhang Liang relinquished his position, retreated to the mountains, embraced the Daoist path, and ultimately attained immortality.
"[8] Concluding the tale, the Dragon King advised Sun Wukong, stating, "The Great Sage, if you do not protect Tang Sanzang and heed his guidance, you will not attain enlightenment and will remain merely a demon.
[9] Zhang Liang's encounter with Huang Shigong had also become one of the classic Chinese folk tales about humility for later generations to learn from.
Zhang Liang is one of the 32 historical figures who appear as special characters in the video game Romance of the Three Kingdoms XI by Koei.