Wang Lian was from Nanyang Commandery, which is around present-day Nanyang, Henan. He enteredYi Province sometime between 194 and 214 in the late Eastern Han dynasty, when Liu Zhang was the Governor of Yi Province. He served as the Prefect of Zitong County under Liu Zhang during this time. Between 212 and 214, the warlordLiu Bei engaged Liu Zhang in a war for control of Yi Province. When Liu Bei's forces attacked Zitong County, Wang Lian ordered his troops to hide behindthe city walls and close the gates, and refused to surrender to Liu Bei. Liu Bei admired Wang Lian for his loyalty towards Liu Zhang, so he called off the attack on Zitong County. In 214, after Liu Bei successfully conquered Yi Province, he recruited most, if not all, of Liu Zhang's former subordinates to serve in his administration. During this time, he appointed Wang Lian as the Prefect of Shifang County and later reassigned him to be the Prefect of Guangdu County. Wang Lian performed well in office and was later promoted to Colonel of the Salt Office to oversee and regulate the production and trade of salt and iron. Under Wang Lian's leadership, the Salt Office gained a lot of revenue for Liu Bei's administration through profits and taxes. At the same time, Wang Lian also identified some of his subordinates with great potential, such as Lü Yi, Du Qi and Liu Gan, and promoted them or recommended them to serve in higher positions. He was later given additional appointments as the Administrator of Shu Commandery and General of Revival. In 223, after Liu Shan became the emperor of the Shu Han state, Wang Lian was appointed as a Colonel of the Garrison Cavalry and as the Chief Clerk of Zhuge Liang, the Imperial Chancellor. He was also enfeoffed as the Marquis of Pingyang Village. Sometime between 223 and 224, when rebellions broke out in the Nanzhong region of southern Shu, Zhuge Liang wanted to personally lead the Shu army on a campaign to quell the revolts and pacify the region. Wang Lian strongly objected and said that Zhuge Liang, given his important status, should not undertake the risk of going into the dangerous Nanzhong region. As Zhuge Liang was worried that none of the Shu generals was sufficiently competent for this task, he insisted on personally leading the campaign. However, Wang Lian's sincerity did make Zhuge Liang reconsider many times before he finalised his decision to go on the campaign in early 225. Wang Lian died not long later, probably around 223. After his death, his son, Wang Shan, inherited his marquis title and marquisate. Like his father, Wang Shan served as an official in Shu and the highest appointment he held was Administrator of Jiangyang Commandery.