Luo Xian (died 270), courtesy name Lingze, was a military general of the Jin dynasty of China. He previously served in the state of Shu during the Three Kingdoms period. He is best known for defending his position at Yong'an (present-day Fengjie County, Chongqing) for about six months against attacks from Shu's former ally state Wu after the fall of Shu. Early life Luo Xian's ancestral home was in Xiangyang in present-day Hubei. His father, Luo Meng (羅蒙), left Xiangyang and took shelter in Shu (蜀; present-day Sichuan and Chongqing) during the chaos towards the end of the Eastern Han dynasty. Luo Meng later served as the Administrator of Guanghan Commandery in the state of Shu during the Three Kingdoms period. At a young age, Luo Xian was known for being talented in scholarly arts. He could already write essays when he was just 12 years old. He also studied under the tutelage of Qiao Zhou and his fellow students compared him to Zigong. When Liu Xuan was designated as the Crown Prince of Shu in 238, Luo Xian was appointed as a close attendant to him and was later reassigned to serve in the personnel department of the imperial secretariat. Some time later, he was commissioned as a Colonel and sent on a diplomatic mission to Shu's ally state Wu. He received high praise from the Wu officials. Fall of Shu When the eunuch Huang Hao rose to power in the Shu government around the 250s, many officials fawned on him in the hope of receiving favours from him. Luo Xian was one of the officials who refused to have any dealings with Huang Hao. As a result, Huang Hao resented him and found an excuse to send him out of Chengdu, the Shu capital, to serve as the Administrator of Badong Commandery (巴東郡; around present-day Fengjie County, Chongqing) near the border between Shu and its ally state Wu. At the time, as the Shu general Yan Yu (閻宇) was already in charge of guarding Badong Commandery, the Shu emperor Liu Shan reassigned Luo Xian to be an Army Commandant (領軍) and ordered him to serve as Yan Yu's deputy. Between September and November 263, when Shu's rival state Wei launched a large-scale invasion of Shu, Yan Yu received orders to lead troops from Badong Commandery to defend Shu from the Wei invaders. Luo Xian remained behind in Yong'an