In 620, Yuchi Jingde was serving under Li Shimin in Li Shimin's campaigns against a major enemy for Tang, Wang Shichong the Emperor of Zheng. During the campaign, many of Yuchi's former confederates who served under Liu Wuzhou, including Xun Xiang, defected to Zheng. Li Shimin's subordinates thus suspected Yuchi as well and put him under house arrest. Qutu Tong and Yin Kaishan suggested that Yuchi be executed. Li Shimin pointed out that if Yuchi really wanted to defect, he would not have waited to do so after Xun's defection. Instead, he released Yuchi and took Yuchi into his own tent, stating, while giving him gold: