Li Daozong was then made the commandant at Ling Prefecture (, roughly modern Yinchuan, Ningxia). When Liang Luoren (), the brother of Liang Shidu the Emperor of Liang attacked with assistance from Eastern Tujue, and Li Daozong was able to repel him, and further expel the Eastern Tujue general Ashina Yushe () from the Wuyuan (, in modern Yulin, Shaanxi). Emperor Gaozong, comparing Li Daozong's accomplishments to those of the Cao Wei imperial prince Cao Zhang the Prince of Rencheng, created Li Daozong the Prince of Rencheng.