structural:summarization, structural:reformatting
Reign of Tride Songtsen (799–815)

Under Tride Songtsen (Khri lde srong brtsan – generally known as Sadnalegs), there was a protracted war with the Abbasid Caliphate. It appears that Tibetans captured a number of Caliphate troops and pressed them into service on the eastern frontier in 801. Tibetans were active as far west as Samarkand and Kabul. Abbasid forces began to gain the upper hand, and the Tibetan governor of Kabul submitted to the Caliphate and became a Muslim about 812 or 815. The Caliphate then struck east from Kashmir but were held off by the Tibetans. In the meantime, the Uyghur Khaganate attacked Tibet from the northeast. Strife between the Uyghurs and Tibetans continued for some time.