Huo Yi (died 271), courtesy name Shaoxian, was a military general of the state of Shu Han in the Three Kingdoms period of China.
During his service under the Shu emperor Liu Shan, Huo Yi suppressed tribal rebellions in the restive Nanzhong region and maintained peace in the area.
[1] His father was Huo Jun, a general who served under the warlord Liu Bei in the late Eastern Han dynasty and died in 217.
In 221, Liu Bei declared himself emperor and established the state of Shu Han, after which he appointed Huo Yi as a taizi sheren (太子舍人; an attendant to the crown prince).
For his contributions, he was promoted to General Who Inspects the Army (監軍將軍) and appointed as the Administrator of Jianning Commandery (建寧郡), effectively being in charge of affairs in Nanzhong.
Huo Yi recently promoted as General Who Stabilises the South (安南將軍) along with the Commander (領軍) of the Badong Commandery (巴東郡) Luo Xian managed to keep their respective regions secure during those turbulent times and led their officials to yield when they learned that Liu Shan surrendered.
When he learned of the fall of Shu, Huo Yi wore mourning garments and lamented greatly for three days, after which his subordinates urged him to follow in his lord's footsteps by surrendering to Wei as well.
Huo Yi refused to surrender and stated that he would fight to the death unless he was assured that Liu Shan was safe and was treated well after submitting to Wei.
[15] Huo Yi later sent troops to assist Lü Xing (呂興) during his revolt against the Wu government and successfully pacified the three commanderies of Jiaozhi (交阯), Rinan (日南) and Jiuzhen (九真).
Early on, Huo Yi alongside Yang Ji (楊稷), Mao Jiong (毛炅) and other of his subordinates swore an oath that if they were besieged by an enemy then they would resist for 100 days otherwise their families would be executed.
His subordinates remonstrated him against such a charitable act, however Tao Huang reassured them that with Huo Yi's death, Jin wouldn't be able to dispatch reinforcement to the city.