辽朝
In 1010 the Liao dynasty attacked the Ganzhou Uyghurs and defeated them.