Palembang
Post-Srivijaya period

Prince Parameswara fled from Palembang after being crushed by Javanese forces. The city was then plagued by pirates, notably Chen Zuyi and Liang Daoming. In 1407, Chen was confronted at Palembang by the returning imperial treasure fleet under Admiral Zheng He. Zheng made the opening gambit, demanding Chen's surrender and the pirate quickly signalled agreement while preparing for a surprise pre-emptive strike. But details of his plan had been provided to Zheng by a local Chinese informant, and in the fierce battle that ensued, the Ming soldiers and Ming superior armada finally destroyed the pirate fleet and killed 5,000 of its men. Chen was captured and held for public execution in Nanjing in 1407. Peace was finally restored to the Strait of Malacca as Shi Jinqing was installed as Palembang's new ruler and incorporated into what would become a far-flung system of allies who acknowledged Ming supremacy in return for diplomatic recognition, military protection, and trading rights.
detectable_content:postscript, punctuation:no_comma, length_constraints:number_sentences[4]