The Majapahit Empire was based in eastern Java and ruled much of Malaya, Borneo, Sumatra, and Bali from about 1293 to around 1500. Its greatest ruler was Hayam Wuruk, whose reign from 1350 to 1389 marked the empire's peak.
The founder of the Majapahit Empire, Kertarajasa, was the son-in-law of the ruler of the Singhasari kingdom, also based in Java. After Singhasari drove Srivijaya out of Java altogether in 1290, the rising power of Singhasari came to the attention of Kublai Khan in China and he sent emissaries demanding tribute. Kertanagara, ruler of the Singhasari kingdom, refused to pay tribute and the Khan sent a punitive expedition which arrived off the coast of Java in 1293.
By that time, a rebel from Kediri, Jayakatwang, had killed Kertanagara. The Majapahit founder allied himself with the Mongols against Jayakatwang and, once the Singhasari kingdom was destroyed, turned and forced his Mongol allies to withdraw in confusion.
Gajah Madah, an ambitious Majapahit prime minister and regent from 1331 to 1364, extended the empire's rule to the surrounding islands. A few years after Gajah Madah's death, the Majapahit navy captured Palembang, putting an end to the Srivijayan kingdom.
Although the Majapahit rulers extended their power over other islands and destroyed neighboring kingdoms, their focus seems to have been on controlling and gaining a larger share of the commercial trade that passed through the archipelago. About the time Majapahit was founded, Moslem traders and proselytizers began entering the area.
After peaking the 1300s, Majapahit power began to decline with a war over succession that started in 1401 and went on for four years. Majapahit found itself unable to control the rising power of the Sultanate of Malacca. Dates for the end of the Majapahit Empire range from 1478 to 1520.