What year did Tang and Tibet sign a treaty to fix the borders?
The Yarlung rulers of Tibet also signed various peace treaties with the Tang, culminating in a treaty in 821 that fixed the borders between Tibet and China.