Jayasena (), the sixth king of XiÃÂn at Ayodhya, succeeded to the throne upon the death of his father-in-law, Uthong II. His claim was legitimized through marriage to Uthong IIâÂÂs only daughter, who had previously been betrothed to his elder brother, Jayadatta (). JayadattaâÂÂs premature death, however, prevented the marriage from being formalized, thereby enabling Jayasena to assume both the royal marriage alliance and the succession to Ayodhya.
During his reign, China dispatched a naval embassy to XiÃÂn in 1282 under the leadership of He Zizhi; the mission failed when the envoys were captured and executed by Cham forces. In response, XiÃÂn undertook its first formal diplomatic mission to China in the following decade.
Jayasena, in 1289, abdicated in favor of his adopted son, Suvarnaraja, the child of Jayadatta and Uthong IIâÂÂs daughter. Afterward, he moved north back to or Kampoá¹Âanagara (), where he succeeded his father Sukhandhakhiri ().
According to the , Jayasena and his elder brother Jayadatta were sons of Sukhandhakhiri, king of Sukandhakiree (). Jayadatta reportedly engaged in a secret affair with his cousin, Uthong IIâÂÂs only daughter, an act that led to his death at the hands of the king. When it became known that the princess was pregnant, the younger brother Jayasena was compelled to marry her, thereby legitimizing his claim and enabling him to succeed to the throne of following Uthong IIâÂÂs death in 1253.
In 1282, during Jayasena's reign at Ayodhya, there is a record of a Chinese naval embassy sent to XiÃÂn that was intercepted by the Chams, and the ambassadors were killed; the Emperor Kublai Khan was then at war with the Chams.
During the reign of Jayasena at Ayodhya, Xian again appearing in Chinese dynastic history is found in the biography of Chen-yi-zhong in the Sung-shi. It reads, "In the 19th year of the Zhi-yuan era (1282âÂÂ83) the Great Army attacked Champa and [Chen] Yi-zhong fled to Xian, where he died eventually." Chen-yi-zhong was a defeated minister of the Southern Sung Dynasty who tried unsuccessfully to find a haven in Champa, which was eventually invaded by the Yuan army. Chens subsequent flight to Xian might suggest that Xian was a commercially flourishing port in the post-Srivijayan Southeast Asian trade order, where the Southern Sung Dynasty minister could find a settlement of compatriots.