After the Portuguese invaded and destroyed the Malacca sultanate at the Capture of Malacca (1511), it established the Portuguese Malacca colony. The Chinese reacted with extreme anger at the Portuguese invasion of its ally and refused to accept a Portuguese embassy after the attack. The Chinese Imperial Government imprisoned and executed multiple Portuguese envoys after torturing them in Guangzhou. The Malaccans had informed the Chinese of the Portuguese seizure of Malacca, to which the Chinese responded with hostility toward the Portuguese. The Malaccans told the Chinese of the deception the Portuguese used, disguising plans for conquering territory as mere trading activities, and told of all the atrocities committed by the Portuguese. Due to the Malaccan Sultan lodging a complaint against the Portuguese invasion to the Chinese Emperor, the Portuguese were greeted with hostility from the Chinese when they arrived in China. The Sultan's complaint caused "a great deal of trouble" to Portuguese in China. The Chinese were very "unwelcoming" to the Portuguese. The Malaccan Sultan, based in Bintan after fleeing Malacca, sent a message to the Chinese, which combined with Portuguese banditry and violent activity in China, led the Chinese authorities to execute 23 Portuguese and torture the rest of them in jails. After the Portuguese set up posts for trading in China and committed piratical activities and raids in China, the Chinese responded with the complete extermination of the Portuguese in Ningbo and Quanzhou.