Liu Heita
Xue Yuanchao inherited the title Baron of Fenyin in 630, which Xue Shou had been created for his contributions in the campaign against Liu Heita. When he grew older, he became known for his studiousness and writing ability. Emperor Taizong was impressed by him, and had him marry Lady Hejing, the daughter of Emperor Taizong's brother Li Yuanji. He was made an attendant to Emperor Taizong's crown prince Li Zhi, and participated in drafting the official history of Jin Dynasty, the "Book of Jin".