 In 621, when Zheng was under attack by the Tang general Li Shimin (the eventual Emperor Taizong), Dou requisitioned troops from Xu to aid Wang.Later that year, Dou was defeated and captured by Li Shimin, and Wang also surrendered to Li Shimin.Xu then submitted to Tang as well and was made the commandant of Yan Prefecture and again created the Duke of Lu.