Ceylon’s emergent Kotte kingdom has been waging a war against the Jaffna kingdom.
Alakeshvara, the King of Kotte, has gained military prestige in the war, eventually coming to power and ruling Kotte under a puppet king from the previous royal dynasty.
However, he had eventually usurped the royal throne of the kingdom.
During the so-called treasure voyages launched by the Yongle Emperor of China’s Ming Dynasty, Admiral Zheng He and his fleet arrive in local waters nearby to establish Chinese control and stability along the maritime routes in the waters of Ceylon and southern India.
However, Alakeshvara poses a threat to the region by committing piracy and hostilities around the local waters.
Alakeshvara had been hostile to the Chinese presence of the fleet on arrival to Ceylon during the first treasure voyage.
Admiral Zheng He had decided to leave Ceylon for the time being and traveled further to other destinations.
During the third treasure voyage, the treasure fleet returns to the Kotte kingdom.
However, this time they have come to dispose Alakeshvara by military force.
Dreyer (2007) states that the confrontation in Ceylon against Alakeshvara most-likely happened during the outward journey in 1410 rather than the homeward journey in 1411.
However, he also notes that most authorities think that the confrontation happened during the homeward journey in 1411.
(Dreyer, Edward L. (2007).
Zheng He: China and the Oceans in the Early Ming Dynasty, 1405–1433.
New York: Pearson Longman.)
When the Chinese return to Ceylon, they are overbearing and contemptuous, considering the Sinhalese people rude, disrespectful, and hostile.
They also resented that the Sinhalese are committing hostilities towards neighboring countries who have diplomatic relations with Ming China.
Admiral Zheng He and a few of his troops are traveling overland into Kotte, because Alakeshvara has lured them into his territory.
Alakeshvara cuts off Admiral Zheng He and his two thousand accompanying troops from the treasure fleet anchored at Colombo.
He also plans to launch a surprise attack on the treasure fleet.
In response, Admiral Zheng He and his troops invade Kotte, thus conquering its capital, and taking Alakeshvara, his family, the rest of the leadership, and dependents captive.
The Sinhalese army hastily return and surround the capital, but they are repeatedly defeated in battle against the invading Chinese troops.
Eventually, the Yongle Emperor decides to free Alakeshvara and return him.
He also requests the Ministry of Rites to recommend someone to serve as the new king.
However, the previous legitimate dynasty has already reestablished themselves in Kotte by the time the Chinese embassy arrives.
From this point forward, the treasure fleet will encounter no hostilities and will make port on Ceylon during all subsequent treasure voyages.