The Changqing covenant — the 'uncle-nephew peace alliance' — was the treaty in which Tang and Tibet closed out a century of seesaw war after the An Lushan rebellion. In 821 (the first Changqing year) the Tibetan btsan-po Ralpacan sent envoys to sue for peace; Emperor Muzong ordered seventeen grand ministers with the Tibetan envoy Drön-nyi to covenant west of Chang'an, agreeing to cease arms and keep each side's bounds. In 822 the Tang envoy Liu Yuanding went to Tibet and covenanted with the btsan-po at Lhasa itself; in 823 the 'Tang-Tibet alliance stele' was raised before the Jokhang, its inscription in both Chinese and Tibetan — 'the uncle and nephew, the two sovereigns, consulting together, have made their states as one and bound a great treaty of peace never to be changed' — and it stands to this day, the most precious material witness in the history of Han-Tibetan relations. Envoys and border markets followed the covenant, and the frontier rested for about eighty years, until the Tibetan empire broke apart after 842. The treaty carried on the line traced by the marriages of Princesses Wencheng and Jincheng — the heqin tradition of accommodation — and the 'uncle-nephew' relationship named since Songtsen Gampo; two powers, at the end of a hundred years of war, choosing peace by calculation.