Around 629 Songtsen Gampo took the throne, moved the capital to Ra-sa (modern Lhasa) and united the tribes of the Qinghai-Tibet plateau into the Tibetan empire; he sent nobles' sons to the Tang state academy at Chang'an, took Princess Wencheng as bride, created the Tibetan script, codified law and brought in Buddhism. Under Mangsong Mangtsen and Trisong Detsen the empire reached its height - contending with the Arabs and the Tang for Central Asia, sacking Chang'an itself in 763, swallowing the Hexi and Longyou corridors, destroying the Tuyuhun and holding the Nanzhao in sway - before the Changqing alliance of 821-822 made Tang and Tibet 'uncle and nephew'. In the ninth century Langdarma's persecution of Buddhism ended in his assassination (842); the royal house split, a great slave-and-commoner revolt broke the dynasty's unity, and the plateau entered its age of fragmentation, from which the 'later diffusion' of Buddhism rebuilt Tibetan civilization.

Editorial note on dating Songtsen Gampo unified the plateau (approximate); wars and the Changqing treaty with the Tang; fragmentation after 842.