Yuchi Gong was annoyed because he thought it was Li Shimin who affronted him in the camp. Li Shimin explained that he was not the one recruiting in Taiyuan, but it just made Yuchi Gong angrier. Then Yuchi Gong could not stop himself from attacking Li Shimin. Fortunately, Qin Shubao arrived at that time. Qin and Yuchi engaged in fighting at once. They drew in that battle, but Yuchi Gong used three tactics with his Bian, while Qin Shubao only used two tactics with his Jian. The battle of Meiliang-Chuan was called Three Bians versus Two Jians (三鞭换两锏) in folk cultures, and that was why people usually regarded Qin Shubao was a little better than Yuchi Gong in martial arts. After that, Li Shimin beseeched Yuchi Gong to join his force for several times. Yuchi Gong was finally moved by Li Shimin. From others, Yuchi Gong also started to believe that it was not Li Shimin who treated him unfairly in the camp. Eventually, after the death of Liu Wuzhou and Song Jingang, Yuchi Gong surrendered to Li Shimin and became a major general fighting for Tang Dynasty. In the battle of Luo Yang, when Li Shimin was attacked by Shan Xiongxin, it was Yuchi Gong who saved Li Shimin. And when Li Shimin was framed by his brothers Li Jiancheng and Li Yuanji, Yuchi Gong played a big part in proving Li Shimin's innocence. Without Yuchi Gong, Li Shimin would never become the emperor. When Yuchi Gong was fighting against Goryeo Koreans in later years (see Qin Shubao's section), he noticed the talent of a young warrior called Xue Rengui (薛仁贵, or Xue Li 薛礼). He pointed Xue Rengui as his adopted son because he believe Xue Rengui would be a decant squad in Tang Dynast's military. However, Xue Rengui was envied by Zhang Shigui (张士贵) and Li Daozong (李道宗). Zhang and Li tried to frame Xue Rengui. Xue Rengui was sent to jail after being set up by Zhang and Li. To save Xue Rengui, Yuchi Gong had conflicts with Li Daozong, and then, the emperor Li Shimin who believed in Li Daozong rather than Xue Rengui. After the judge announced that Xue Rengui would be sent to the death row, Yuchi Gong was so disappointed and angry. He hit the Zhijin Gate with his Bian to show his discontentment. He hit the gate so hard that his