 Towards the end of his life, Airlangga was faced with the problem of succession.His heiress, the crown princess Sangramawijaya, decided to become a Bhikkuni Buddhist hermit rather than succeed Airlangga as queen regnant.Sangramawijaya is the daughter of the queen consort Dharmaprasadottunggadewi.