In 1293, Kublai Khan, founder of the Yuan dynasty, sent a large invasion fleet to Java with 20,000 to 30,000 soldiers, beginning the Mongol invasion of Java. This was a punitive expedition against King Kertanegara of Singhasari, who had refused to pay tribute to the Yuan and maimed one of its ministers. However, it ended with failure for the Mongols.