The agreement is contained in what is popularly known as the Polonnaruwa inscription. The Velakkara mercenaries revolted in 1084, unwilling to fight their Tamil kinsmen after the declaration of war by the Chola empire under Kulothunga Chola I. They mutinied and burnt the palace in the Velakkara Revolt causing Vijayabahu I to flee to Vatagiri. On his return, he defeated the insurrection and caused the ringleaders of the revolt to be burnt in the funeral pyres of the Generals they had killed.
Vijayabahu then made an agreement to the effect that the Velakkara mercenaries would protect the Temple of the Tooth.
- H. W. Codrington (1994). Short History of Ceylon. Asian Educational Services. p. 57.