In 1902, Xayar County was established. On July 15, 1996, a prison rebellion in Xayar County led to the deaths of fifteen. In 1998, Tarim Prison was renamed
Xayar Prison (). In June 2008,
Gezqum Township (Gaizikumu) was established. On December 30, 2008, the township's government started operation. In 2011,
Yantaqsheher Township (Yangtakexiehai'er) was established. In 2012,
Xadadong (Hadedun) was established. On February 25, 2013, the town's government started operation. On May 26, 2014,
Gulbagh (Gulebage), then a township, was made a town. ==Administrative divisions==