The king fled the island kingdom after a Majapahit naval invasion in 1398 and founded his new stronghold on the mouth of Bertam river in 1402. Within decades, the new city grew rapidly to become the capital of the Malacca Sultanate. Portuguese accounts, written a hundred years after his death, however, suggest he was from Palembang and usurped the throne of Singapura before he was driven out, either by the Siamese or the Majapahit, and founded Malacca.[4]