In 676 the Tibetans made raids on
Shanzhou,
Guozhou, Hezhou (now
Linxia),
Diezhou,
Migong and
Danling in
Gansu. The Chinese counterattacked, defeating the Tibetans at
Longzhi. The Chinese army led by
Li Jingxuan were soundly defeated near
Qinghai Lake, however, and by the end of 677 Tibet controlled the whole of the
Tarim Basin and the mountainous regions to the southwest.
Revolt of Zhangzhung and the leadership of his mother, Khrimalod, and his ministers The western kingdom of
Zhangzhung revolted soon after the death of King
Mangsong Mangtsen (also known as Trimang Löntsen, ) (r. 650–677), the son of
Songtsen Gampo, but was brought back under Tibetan control by the "firm governance of the great leaders of the Gar clan" the following year. Under the leadership of his powerful mother,
Khri ma lod, and his ministers and generals during the early part of his reign, Tibet continued to maintain and even expand its territory. The Tibetans gained control of an important Tang fortress at
Anrong in 678 on the
Min River north of
Chengdu which they held for more than sixty years as a frontier post. According to an 11th-century Chinese history, the Erhe people from the
Erhai Lake region in 'Jang, one of the princedoms around the upper waters of the
Yangtze which later made up
Nanzhao, submitted to Tibet this same year, asking for an alliance against the Chinese. It was also in this year that the Tibetan princess Khri-bangs was married to an
Azha chief to strengthen bonds between the two peoples. They had a son named Ma-ga Thogon Khagan. and the lucrative trade routes to the West, which they held for almost a century before the Tibetans reconquered the region. The Turkish
Khagan Ton-ya-bgo (Ch.
Ashina Tuizi), chief of the
Western Dulu in
Dzungaria, visited the Tibetan court in 694. together they attacked and defeated the Chinese at
Lengjuan. The following year Dusong successfully attacked
Lintao, and Liangzhou.
Gar Trinring Tsendro went to
Chang'an in 696 to try to negotiate peace with
Empress Wu Zetian (r. 684–705) on condition that China remove all troops from Central Asia and divide the Western Turks between China and Tibet. She refused to negotiate. After this, Dusong asserted the right of the power of the king over his ministers. and so on." ==Relations with Nepal==