 In folk cultures, there were so many his stories derived from the book Shuo Tang, including he selling his horse, fighting against Yang Lin and Wei Wentong, saving Li Yuan's family in Lintong Pass, and serving as a door god along with Yuchi Gong (see below), etc.He started as a low-class officer in Ji'nan, and then served under Luo Yi, Tang Bi and Yang Lin before took part in the Wagang Fort rebellion.After the collapse of Wagang Fort, he briefly served for Wang Shichong (王世充) and then joined the troop led by Li Shimin (李世民).