 Airlangga was betrothed to his cousin, one of Dharmawangsa's daughter, thus arranged marriage was in place.At that time, Medang had become a powerful kingdom, allied or probably subjugated Bali, and had established a colony in West Kalimantan.Dharmawangsa aspired to ascend Medang as regional power by challenging Srivijaya Empire domination.