Ming dynasty China warned Thailand and the Majapahit against trying to conquer and attack the Malacca sultanate, placing the Malacca Sultanate under Chinese protection as a protectorate, and giving the ruler of Malacca the title of King. The Chinese strengthened several warehouses in Malacca. The Muslim Sultanate flourished due to the Chinese protection against the Thai and other powers who wanted to attack Malacca.