阴山
In 878, however, Li Guochang and his son Li Keyong rebelled against the Tang. In 880, they were defeated by the joint forces of military governor Li Zhuo (李琢) and Tuyuhun chieftain Helian Duo, and the Shatuo army fled northward to the Yin Mountains where they sought refuge with a Mohe tribe. Some time after Li Ni's death (predating Li Guochang's and Li Keyong's defeat) in 879 (when Miaojilie was 12), Li Guochang took Miaojilie as a bodyguard, having been impressed by the son's mounted archery skills reminiscent of the father. It was said the teenager never missed when he aimed at hovering birds on hunting trips.