 Janggala and Kediri were again united when the raja of Kadiri, Kameswara (1116–1136) married a princess of the Kingdom of Janggala, at which point the Kingdom of Janggala ceased to exist.Airlangga was the last great king of the Mataram kingdom of Java.At the end of his life he decided to divide his kingdom between his two sons which was Kadiri and Djanggala.