The Theravada Buddhist Kingdom of Ayutthaya, or Siam, is regarded as the strongest power in Indochina by the end of the fourteenth century, but it lacks the manpower to dominate the region.
Majapahit, an Indianized kingdom based in eastern Java, has entered a period of decline with conflict over succession.
In the 1390s, Majapahit had sent thousands of ships to attack Palembang, the former capital of the ancient, partly Hindu, partly Buddhist kingdom of Srivijaya that had controlled a large part of what is now Malaysia and Indonesia.
Parameswara, who had lived in Palembang as a prince within the Srivijayan empire but the conquest had forced him and many others to flee Palembang.
Parameswara in particular had sailed to the island of Temasek (an early city on the site of modern Singapore) to escape persecution and had come under the protection of Temagi, a Malay chief from Patani who had been appointed by the King of Siam as Regent of Temasek.
However, Temasek has been a vassal of Majapahit since 1365.
After several days, Parameswara had been betrayed by Temagi and had been compelled to kill him.
For the past four years, Parameswara has ruled Temasik, where he is finally attacked by the Majapahit armies when one of the ministers opens the gates for Majapahit marines to attack the palace, forcing Parameswara to evacuate.