Li Shiji was initially a follower of Li Mi, one of the rebel rulers rebelling against the preceding Sui dynasty, and he submitted to the Tang Empire after Li Mi did so, upon which Emperor Gaozu, impressed with his loyalty to Li Mi, granted him the family name "Li". He later participated in destroying Xu Yuanlang and Fu Gongshi, two of the Tang Empire's competitors in the campaign to reunify China. During the reign of Emperor Gaozu's son and successor, Emperor Taizong, Li Shiji participated in the successful campaigns against the Göktürks and Xueyantuo, allowing the Tang Empire to become the dominant power in eastern Asia, and also served as a chancellor. During the reign of Emperor Gaozong, he served as chancellor and the commander of the army against Goguryeo, destroying Goguryeo in 668. He died the next year. He and Li Jing were considered the two most prominent early Tang generals.