Rouran Khaganate
After the 5th century, however, the land was frequently invaded by nomadic states such as Tuyuhun, the Rouran Khaganate, and the Dingling and the area gradually was abandoned. Circa 630, at the beginning of the Tang period, Shanfutuo (鄯伏陁) led the remaining Shanshan people to Hami.