[3] Zhang Guang led over a hundred men to defend the north of Mount Malan (馬蘭山; in present-day Tongchuan, Shaanxi), where they were besieged by the rebels for more than 100 days.
With a stern expression, Zhang Guang replied, "It is precisely because Liu of Yongzhou refused to adopt my plans that you, Great King, are in this position."
At the same time, the Jin general, Chen Min rebelled by occupying the Jiangnan region south of the Yangzi River and planned to invade Jing province.
Yong appointed Zhang Guang as the administrator of Shunyang and promoted him to General of Mound and River before sending him with 5,000 infantry and cavalry units to campaign against Chen Min in Jing.
Just as they were about to fight, the commander of the infantry, Pi Chu (皮初) ordered Zhang Guang to set an ambush and wait for the right moment.
After Pi Chu and the others began fighting, Zhang Guang led his forces to join in the attack, and the rebels were defeated both on land and water.
Prior to his appointment, Deng Ding (鄧定) and 2,000 other refugees from Qin province fled to the Hanzhong region and occupied Chenggu, where they used it as a base to plunder the surrounding area.
While Zhang Yan was at standstill, Deng Ding contacted the emperor of Cheng-Han, Li Xiong in Sichuan, and the Cheng sent their forces to assist the refugees.
Zhang Guang was unable to take up his post in Hanzhong, so stationed himself at Weixing (魏興; in present-day Ankang, Shaanxi) and planned with the local administrators to recover lost territory.
Zhang Guang ordered Jin Miao to attack them, and he killed two of their leaders, Li Yun (李運) and Wang Jian (王建).
Wang Jian's son-in-law, Yang Hu (楊虎) gathered his remaining followers to camp at the E river (厄水; in present-day Nanzheng District, Shaanxi) and attack Zhang Guang.
Once the battle began, Nandi defected, and he and Yang Hu attacked Mengcheng from both sides, killing him and his younger brother, Zhang Yuan (張援).
[11] The people of Liang province entrusted his son, Zhang Mai (張邁) with provincial affairs, but he was later lost when fighting Yang Nandi's forces.