Emperor Fei of Western Wei , personal nameYuan Qin, was an emperor of the Xianbei state Western Wei—a branch successor state of Northern Wei. He, even more so than his father Emperor Wen, held little actual power in the face of overwhelming control of power by the paramount general Yuwen Tai. In 554, he tried to plot to have Yuwen killed, but his plot was discovered, and Yuwen deposed him, and soon had him killed.
It is not known when Yuan Qin was born. What is known is that he was the oldest son of Yuan Baoju the Prince of Nanyang, a grandson of Emperor Xiaowen of Northern Wei, by his wife Princess Yifu, and that he had one younger brother by Princess Yifu, Yuan Wu. Around the new year 535, Emperor Xiaowu of Northern Wei—a cousin of Yuan Baoju and the final emperor of the undivided Northern Wei state but who by now was only emperor over the western part of the state -- was poisoned by the paramount general Yuwen Tai over a dispute developed when Yuwen disapproved of his incestuous relationship with Yuan Baoju's sister Yuan Mingyue. Yuwen Tai made Yuan Baoju the new emperor. Emperor Wen created Princess Yifu empress, and created Yuan Qin crown prince. In 538, while both Emperor Wen and Yuwen Tai were away on a campaign against Eastern Wei, Yuan Qin was nominally put in charge of the capital Chang'an, although the official Zhou Huida was actually in charge. When former Eastern Wei captives, upon hearing initial news of Eastern Wei victories, rebelled within Chang'an with Zhao Qingque, Zhou and Li Hu were forced to escort the crown prince out of Chang'an to flee the rebellion. Eventually, when Yuwen returned, Zhao's rebellion collapsed, and Emperor Wen and Yuan Qin were both able to return to Chang'an. Emperor Wen had little actual power, and also in 538, over Yuwen's desire for an alliance with Rouran, he was forced to deposeEmpress Yifu and marry the daughter of Rouran's Chiliantoubingdoufa KhanYujiulü Anagui as his empress. In 540, he was further forced to initially send Empress Yujiulü away from Chang'an, and then forced to order her to commit suicide. Sometime during Emperor Wen's reign, Yuan Qin married Yuwen Tai's daughter as his crown princess. It was said that he favored her greatly, and that he had no concubines. In 542, during an assault that Eastern Wei's paramount general Gao Huan launched on the border city Yubi, Yuan Qin was made the defender of the important city Puban, while Yuwen launched an army to try to catch up with Gao as he retreated. It is not known how much responsibility or authority Yuan Qin actually had during this campaign. In 551, after Emperor Wen died, Yuan Qin took the throne as Emperor Fei.
As emperor
Emperor Fei appeared to have even less actual power than his father, to whom Yuwen Tai paid formal deference. He was able to rebury his mother Empress Yifu with his father Emperor Wen. He created his wife, Crown Princess Yuwen, empress. Apparently because Yuwen wanted to restore many Zhou Dynasty customs and traditions, Emperor Fei did not use an era name; rather, the years of his reign were merely referred to as "the first year," "the second year," and so on. In 553, Yuwen Tai's nephew Yuchi Jiong conquered the western provinces of Liang Dynasty, which had been previously under the control of the Liang pretender to the throne, Xiao Ji, and added them to Western Wei territory. In late 553, the official Yuan Lie plotted killing Yuwen, but his plot was discovered, and Yuwen killed him. After Yuan Lie's death, Emperor Fei became angry at Yuwen and often spoke against him. He also secretly plotted killing Yuwen, despite advice from Yuan Yu the Prince of Linhuai and Yuan Zan the Prince of Guangping that plotting was dangerous. Emperor Fei's plot, however, was eventually discovered by Yuwen's other sons-in-law. Yuwen deposed and imprisoned Emperor Fei, making his younger brother Yuan Kuo emperor. Soon thereafter, Emperor Fei was put to death. According to the History of Northern Dynasties, his wife Empress Yuwen "also suffered death because she was faithful to Wei's imperial house," although it is unclear exactly how she died or whether she died the same year he did.