While Li Hanzhi was preparing a campaign against Wang Chongying (a warlord in the Tang dynasty known for his successive rules of Shanguo Circuit), Zhang Quanyi took Heyang and captured Li's family and became governor of Heyang.
In 888, while Li was preparing a campaign against Wang Chongying the military governor of Huguo Circuit (, headquartered in modern Yuncheng, Shanxi), Wang secretly persuaded Zhang to turn against Li. Zhang thus took his forces and attacked Heyang, capturing it and taking Li's family captive. Zhang then claimed the title of military governor of Heyang. Wang Chongying (Chinese: ) (d. February 12, 895) was a warlord late in the Chinese dynasty Tang Dynasty who was known for his successive rules of Shanguo Circuit (, headquartered in modern Sanmenxia, Henan) and Huguo Circuit (, headquartered in modern Yuncheng, Shanxi) as military governor (Jiedushi). 
