Gongsun Yuan (pronunciationⓘ) (died c.September 238[1]), courtesy name Wenyi, was a Chinese military general, politician, and warlord who lived in the state of Cao Wei during the Three Kingdoms period of China.
In 238, the Cao Wei general Sima Yi led forces to Liaodong and successfully conquered Yan.
In 237, the Wei emperor Cao Rui felt insecure about Gongsun Yuan's influence in the northeast, so he sent the general Guanqiu Jian to lead an army of Chinese, Wuhuan and Xianbei troops to attack Gongsun Yuan, but floods caused the campaign to be aborted.
Gongsun Yuan declared himself "King of Yan" (燕) and concluded an alliance with Eastern Wu.
The following year, the Wei generals Sima Yi and Guanqiu Jian led a campaign against Gongsun Yuan.