The weakness of Sriwijaya following the aggression by the Chola kingdom has had two significant impacts. Firstly, the successor of Dharmawangsa, i.e. Airlangga (1019–1042) could seize back lost regions following the pralaya in 1006. Second, a set of Chola attacks possibly gave consciousness to Sriwijaya rulers that good partnership with the Chola kingdom could at any time change to war and subjugation. This explains the emergence of some kind of gentlemen agreements among the main powers in the Malay world and the Javanese world. This situation crystallized when these two powers allied for confronting against the Chola kingdom by political marriage between Airlangga (successor of Dharmawangsa) and a sister of the Srivijaya king. There was a kind of consensus in which Srivijaya controlled the western part of the Malay archipelago, while the eastern part was under control by Airlangga. But in fact Java still had trading connections with the western part of the Malay archipelago