Emperor Wen of Sui
Li Xiaogong was born in 591, during the reign of Emperor Wen of Sui. His grandfather Li Wei (李蔚) was a son of the Western Wei general Li Hu (李虎), the grandfather of the major Sui general Li Yuan, and was a regional commandant during Sui's predecessor dynasty Northern Zhou. Li Xiaogong's father Li An (李安) was a general during Sui.