Raden Wijaya used the oncoming Mongol troops to overthrow Jayakatwang. Wijaya then betrayed his Mongol allies, who were exhausted after the war, drove them from Java and established Majapahit as one of the greatest empires to arise from within the area covered by the modern territory of Indonesia.