In the early eighth century, the Tang Dynasty added Beiting Governor's Office in Tingzhou (present-day Jimsar). The Beiting and Anxi offices, with an administrative and military system under them, implemented effectively the Tang government's orders.