Answer
Li Yuan defeated Li Gui, Dou Jiande, Wang Shichong, Xue Rengao and Liu Wuzhou to unite all of China under the Tang dynasty. Li Yuan was a warlord who had served under the Sui dynasty. After the Sui dynasty fell, Li Yuan established the Tang dynasty and became its first emperor. Li Yuan defeated his rivals to unite all of China under the Tang dynasty.