Sui Yangdi
Xue Rengui was born in 614, during the reign of Emperor Yang of Sui, but his early activities were not recorded, other than that his wife had the surname Liu (). It was said that he was poor and was a farmer. Around the time that Tang Dynasty's second emperor Emperor Taizong was set to launch a major campaign against Goguryeo in 644, Xue was planning to rebury his ancestors, when Lady Liu told him: