Kertanegara, the fifth ruler of
Singhasari, was an ambitious man. In 1289, a Mongol emissary came to Java to demand his submission to the
Great Khan of the
Yuan dynasty. Kertanegara rejected them, cut their ears, and sent them back to China. Anticipating Mongolian revenge, he prepared to thwart the forthcoming invasion by conquering important ports and kingdoms in
Maritime Southeast Asia. His most important expedition was the
Pamalayu expedition to
Sumatra in 1292, where he sent the Javanese army to conquer Sumatra from various successor states of
Srivijaya. With the bulk of the Javanese army overseas, Jayakatwang seized his chance and launched a coup against Singhasari. Kertanegara was killed in his palace. Jayakatwang then declared himself ruler of Java and king of the restored Kediri. Among the few surviving relatives of Kertanegara was Raden Wijaya, who fled to
Madura where he was sheltered by its regent,
Arya Wiraraja. Following Wiraraja's plea, Jayakatwang pardoned Wijaya, who in return submitted himself to Jayakatwang. Jayakatwang gave Wijaya land in the Tarik forest in Brantas delta, to build a village that was later called
Majapahit, named from the sour beal trees that grow in the area. == Mongol invasion ==