 The military expedition included 10,000 horsemen supplied by the Uyghurs, who were close allies of the Tang.The Uyghurs had allied with the Tang ever since the dynasty supported their revolt against the reign of the Xueyantuo, a tribe of Tiele people.Xinjiang was administered through the Anxi Protectorate () and the Four Garrisons of Anxi.