Wang Yan (王衍) (899–926), né Wang Zongyan (王宗衍), courtesy name Huayuan (化源), also known as Houzhu (後主, "later Lord"), later posthumously created the Duke of Shunzheng (順正公) by Later Tang, was the second and final emperor of the Chinese Five Dynasties and Ten Kingdoms period state Former Shu. He was the youngest son of Former Shu's first emperor Wang Jian (Emperor Gaozu), but became his heir because his mother Consort Xu was Wang Jian's favorite concubine and was able to gain the support of the chancellor Zhang Ge.