Quick Answer: Who Was Fang Xuanling?
Fang Xuanling (房玄龄, Fáng Xuánlíng, died 648) was a leading adviser to Li Shimin (李世民, Lǐ Shìmín), who became Emperor Taizong (太宗, Tàizōng) of the Tang (唐, Táng). Fang served as a senior minister and supervised the compilation of the Book of Jin (晋书, Jìnshū).[7][6]
- Military staff: He drafted orders and recruited advisers during Li Shimin’s campaigns.[1]
- Succession: He and Du Ruhui (杜如晦, Dù Rúhuì) helped plan the palace coup of 626.[7]
- Government: He managed senior court business and helped revise the laws of Taizong’s reign.[2][5]
Fang’s career spanned the prince’s personal staff, the central administration and the court’s history projects.

Military orders, petitions and draft laws passed through Fang’s hands. Those documents show how the prince’s adviser became one of the people who organized government after the conquests.
Recruiting and Writing for the Prince of Qin
Fang had held office under the Sui before joining Li Shimin, the future Prince of Qin (秦王, Qín Wáng), on campaign. The Old Book of Tang (旧唐书, Jiù Tángshū) depicts him drafting military orders and court submissions and bringing able people onto the prince’s staff.[1]
When Du was reassigned, Fang argued that the prince needed to keep him on his staff. The recommendation shows how Fang helped shape the group that advised Li Shimin.[1]
Fang’s Role in the Xuanwu Gate Coup
Crown Prince Li Jiancheng (李建成, Lǐ Jiànchéng) opposed Li Shimin’s circle. Fang and Du lost their posts. The later official biography says they returned in Daoist dress for a private strategy meeting.[2]
In 626, Li Shimin’s side killed Jiancheng and Li Yuanji (李元吉, Lǐ Yuánjí) at the Xuanwu Gate (玄武门, Xuánwǔ Mén). Li Shimin became crown prince and then took the throne. Fang’s recorded role lay in the planning.[3]
From Campaign Planning to Civil Government
In 629, Fang became left vice director of the Department of State Affairs (尚书省, Shàngshū Shěng), with Du as right vice director.[4] The New Book of Tang (新唐书, Xīn Tángshū) says Taizong assigned routine matters to the department’s assistants. This freed the vice directors to handle major business and look for able officials.[2]
Fang worked with Zhangsun Wuji (长孙无忌, Zhǎngsūn Wújì) and other officials on the Zhenguan Code (贞观律, Zhēnguān Lǜ). That code provided a basis for the 651 revision under Taizong’s successor. The court issued the annotated version now known as the Tang Code in 653.[5]
When Taizong took the field against Goguryeo (高句丽, Gāogōulí), Fang oversaw supplies and military dispatches from the capital. He later urged the emperor to end the fighting, pointing to its costs for soldiers and their families.[2]
How Fang Helped Compile the Book of Jin
Taizong ordered a new Jin history in 646. Fang and fellow officials drew on the earlier history by Zang Rongxu (臧荣绪, Zāng Róngxù) and compared other accounts.[6]
The resulting work runs to 130 chapters. Li Chunfeng (李淳风, Lǐ Chūnfēng) prepared treatises on astronomy, calendrical systems and the Five Phases. Taizong wrote appraisals of two Jin rulers and of the writer Lu Ji (陆机, Lù Jī) and the calligrapher Wang Xizhi (王羲之, Wáng Xīzhī).[1]
FAQs About Fang Xuanling
Was Fang Xuanling also called Fang Qiao?
Yes. The older Tang history gives Fang Qiao (房乔, Fáng Qiáo) as his personal name and Xuanling as his courtesy name. The newer history reverses the two.[1][2]
Where does the story about Fang’s wife and vinegar come from?
An anecdote collected in the Taiping Guangji describes Lady Lu (卢夫人, Lú Fūrén) drinking wine presented as poison. A popular retelling substitutes vinegar and links the story to chicu (吃醋, chīcù), meaning to feel jealous.[8][9]
Was Fang honored at the Lingyan Pavilion?
Yes. Fang was among the 24 officials whose portraits Taizong commissioned for the Lingyan Pavilion (凌烟阁, Língyān Gé) in 643.[10]
Sumber
[1] Liu Xu and others. Old Book of Tang, chapter 66, Fang Xuanling and Du Ruhui
[2] Ouyang Xiu, Song Qi and others. New Book of Tang, chapter 96, Fang Xuanling and Du Ruhui
[3] Sima Guang and others, with commentary by Hu Sansheng. Zizhi Tongjian, chapter 191, Xuanwu Gate coup
[4] Sima Guang and others. Zizhi Tongjian, chapter 193, Zhenguan appointments
[5] Supreme People’s Court of China. The Origin of Law, Zhangsun Wuji, pp. 73–74
[6] Pan Mingji. Journal of Chinese Studies 67, discussion of the Jin histories, p. 14
[7] ChinaCulture.org. Fang Xuanling
[8] Li Fang and others. Taiping Guangji, chapter 272, Fang Xuanling’s wife
[9] Guangdong literature and history resource. Tang narratives about jealousy and marriage
[10] Sima Guang and others. Zizhi Tongjian, chapter 196, the Lingyan Pavilion portraits