Liao dynasty
In 1026 the Ganzhou Uyghurs were defeated in battle by the Liao dynasty.