This article does not cite any sources. (December 2009) (Learn how and when to remove this template message)
Yuan Lang () (513-532), courtesy name Zhongzhe (), frequently known by his post-removal title of Prince of Anding (), at times known as Emperor Houfei (, "later removed emperor"), was briefly an emperor of the Xianbei dynasty Northern Wei. He was proclaimed emperor by the general Gao Huan, who rebelled against the clan of the paramount general Erzhu Rong in 531, as a competing candidate for the imperial throne against Emperor Jiemin, who had been made emperor by Erzhu Rong's cousin Erzhu Shilong. In 532, after Gao's victory over the Erzhus, he believed Yuan Lang, whose lineage was distant from the recent emperors, to be unsuitable to be emperor, and instead made Emperor Xiaowu emperor. Emperor Xiaowu created Yuan Lang the Prince of Anding, but later that year put him to death.
Yuan Lang was born in 513, as the third son of Yuan Rong () the Prince of Zhangwu, a key official in the Northern Wei imperial government who was a distant relative of the then-reigning Emperor Xuanwu. His mother was Lady Cheng. (It is unclear whether she was Yuan Rong's wife or concubine.) In 526, while fighting the agrarian rebel leader Ge Rong (), Yuan Rong was killed in battle, and Yuan Lang's older brother Yuan Jingzhe () inherited the title of Prince of Zhangwu. Yuan Lang was said to be intelligent in his youth.
In 529, at age 16, Yuan Lang became an army officer, serving on the staff of Yuan Su () the Prince of Lu Commandery, who was the governor of Si Province (, roughly modern Xinzhou, Shanxi). In spring 531, he became the governor of Bohai Commandery (, in modern Cangzhou, Hebei).
At the time that Yuan Lang became the governor of Bohai Commandery, the imperial government was dominated by members of the paramount general Erzhu Rong, who, after Emperor Xiaozhuang had killed Erzhu Rong in 530, overthrew and killed Emperor Xiaozhuang, installing Yuan Ye and Emperor Jiemin successively. In summer 531, the general Gao Huan, believing the Erzhus to be corrupt and to have lost the support of the people, rose in rebellion at Xindu (, in modern Hengshui, Hebei), and while initially he claimed to be merely wanting to overthrow the Erzhus and still recognizing Emperor Jiemin, he soon, at the urging of his general Sun Teng (), came to believe that he needed to have an emperor under his control who could issue edicts as he wished. In winter 531, he therefore declared Yuan Lang, whose Bohai Commandery was under his control by that point, emperor, even though Yuan Lang's lineage was distant from that of recent emperors and was not even an imperial prince himself.
There is little evidence that the 18-year-old Yuan Lang exerted any real influence on Gao Huan's policy decisions as he battled the Erzhus. He initially remained at Xindu, but after Gao captured the important city Yecheng (, in modern Handan, Hebei) in spring 532, Yuan Lang was placed in Yecheng.
Gao soon prevailed in a major battle against the joined forces of Erzhu Zhao, Erzhu Tianguang, Erzhu Dulü (?), and Erzhu Zhongyuan (?), and in light of Gao's victory, the general Husi Chun rebelled at the capital Luoyang and executed the prime minister Erzhu Shilong and Erzhu Shilong's brother Erzhu Yanbo (?), delivering their heads, as well as Erzhu Tiangguang and Erzhu Dulü, whom Husi captured, to Gao. Erzhu Zhao fled back to his domain, while Erzhu Zhongyuan fled to rival Liang Dynasty.
The victorious Gao, along with Yuan Lang, approached Luoyang. Gao, now believing that Yuan Lang's lineage was too distant, making him an inappropriate choice for emperor, initially considered still permitting Emperor Jiemin to remain on the throne, but after his generals Wei Lan'gen () and Cui Ling (name not in Unicode) persuaded him that Emperor Jiemin would be difficult to control, imprisoned Emperor Jiemin, while instead deciding on making Yuan Xiu the Prince of Pingyang, a grandson of Emperor Xiaowen, emperor. Gao then forced Yuan Lang to yield the throne to Yuan Xiu, who took the throne as Emperor Xiaowu.
Emperor Xiaowu created Yuan Lang the Prince of Anding. However, in winter 532, about six and a half months after taking the throne, Emperor Xiaowu ordered Yuan Lang to commit suicide. Yuan Lang was buried without imperial honor, but it is not clear whether he was buried with any honor or not. Eventually, Yuan Lang's son Yuan Huangtou was permitted to inherit the title of Prince of Anding. After Northern Wei's branch successor state Eastern Wei ended and was replaced by Northern Qi, its first emperor Emperor Wenxuan of Northern Qi carried out a major slaughter of Northern Wei's imperial Yuan clan in 559. One of the victims was mentioned as one of his close associates Yuan Huangtou, who was starved to death, but it is not known for sure whether that Yuan Huangtou was Yuan Lang's son.