Wei Yan (Chinese: 魏延) is a minor character in the 14th-century Chinese classic novel Romance of the Three Kingdoms by the late Luo Guanzhong, and its multiple adaptations. He is one of the generals of Liu Bei.
Although he did not obey the orders of Prime Minister Zhuge Liang, Wei Yan was still very effective on the battlefield, where he terrorized his enemies as well as his allies.
During the Battle of Wuzhang Plains, Wei Yan bravely clashed with the Wei. However, when Zhuge Liang died of illness, who was succeeded by Jiang Wei and took command. While he failed to maintain the little ascendency his predecessor had over Wei Yan, who refused to retreat and attacked Sima Yi's camp directly, at the cost of heavy losses.
Realizing his folly, he asked them for reinforcements, but they were refused him. He ends up running away. But later on, he rebels against Liu Shan, who sent Dong Yun to settle the situation diplomatically. However, upon his arrival, Wei Yan was already dead, killed by Ma Dai because of his rebellion. Recall that Wei Yan was an important element in the taking of the Nanman.
- He is a playable character in the Dynasty Warriors series.
- He is a boss character in the Knights of Valour series.