Liang Xing was one of the generals who responded to Ma Chao's call to resist Cao Cao in 211. However, after their defeat by Cao at the Battle of Tong Pass, the alliance broke down and he became a bandit. He raided Zuopingyi and caused the officials in the area to flee in panic. The Grand Administrator of the commandery, Zheng Hun (鄭渾), observed that the raiders were only held together by force and so Zheng used various physiological plots to chip away Liang Xing's bandits. Liang Xing and his remaining followers became afraid and fled to their base at Fucheng (near present-day Lechuan in Shaanxi). Cao Cao then sent Xiahou Yuan and Xu Huang to aid Zheng Hun to attack Fucheng, and soon they took the head of Liang Xing and the rest of his party were all pacified.
In Romance of the Three Kingdoms
In Luo Guanzhong's historical novel Romance of the Three Kingdoms, Liang Xing was one of the eight officers serving under Han Sui. When relations between Ma Chao and Han Sui soured as a result of Jia Xu's ploy, Liang Xing and Ma Wan (馬玩) planned to assassinate Ma Chao. Ma Chao heard of the plot, and killed them preemptively.
- Chen, Shou. Records of the Three Kingdoms (Sanguozhi).
- de Crespigny, Rafe (1996). To Establish Peace: being the Chronicle of the Later Han dynasty for the years 201 to 220 AD as recorded in Chapters 64 to 69 of the Zizhi tongjian of Sima Guang. Volume 2. Canberra: Faculty of Asian Studies, Australian National University. ISBN 0-7315-2526-4.
- de Crespigny, Rafe (2007). A biographical dictionary of Later Han to the Three Kingdoms (23–220 AD). Leiden: Brill. ISBN 978-90-04-15605-0.
- Luo, Guanzhong. Romance of the Three Kingdoms (Sanguo Yanyi).
- Pei, Songzhi. Annotations to Records of the Three Kingdoms (Sanguozhi zhu).
- Sima, Guang. Zizhi Tongjian.