In the 8th century, Tibetan King Trisong Dentsen had defeated China, which was forced to pay an annual tribute to Tibet. To put an end to mutual fighting, China and Tibet signed a treaty in 783 CE where boundaries were confirmed, and each country promised to respect the territorial sovereignty of the other. This fact is engraved on the stone monument at the entrance of the Jokhang temple, which still stands today. The engraving is both in Chinese and in Tibetan.

