During his time in Gajabahu’s court, the Parākramabāhu did two things of significance. The first was to enmesh the court of Gajabahu in a web of espionage and the other was to marry one of his sisters called Bhaddavati, to King Gajabahu. Through this marriage, Parākramabāhu managed matters that Gajabahu II completely trusted him, as much as he did the royal family. Nevertheless, he retained the entirety of Bhaddavati’s dowry for himself, and entered into secret negotiations with Gajabahu’s general, Gokanna. Gajabahu eventually grew suspicious of Parākramabāhu’s activities, and Parākramabāhu departed Rajarata in secrecy by night and returned to Dakkhinadesa.