Rafael sailed in a ship from
Portuguese Malacca to
Guangzhou in southern China in 1516, sent by
Afonso de Albuquerque, the
Viceroy of Estado da India, in order to secure trading relations with the Chinese during the reign of the
Ming dynasty ruler
Zhengde (r. 1505–1521). Rafael traveled with a crew from a
Malaysian
junk, bringing back profitable trade items and glowing reports about China's commercial potential. In fact, his report on China was one of the main reasons why
Fernão Pires de Andrade decided to carry out his mission in going to China instead of
Bengal in 1517. Rafael was admitted into port by Chinese authorities in order to trade with the merchants there, but was not allowed to move further. In 1517, Rafael piloted yet another trade mission to Guangzhou. Rafael Perestrello's mission was followed up in 1517 by the Portuguese apothecary
Tomé Pires and pharmacist, merchant, and diplomat
Fernão Pires de Andrade, in a diplomatic mission to Ming China commissioned by
Manuel I of Portugal (1495–1521). Initial trade and diplomatic missions were temporarily ruined once wild rumors of Portuguese cannibalizing Chinese children was coupled with real events of Portuguese settlers breaking Chinese laws, pillaging Chinese villages, and taking off with female captives; the Chinese responded by burning and capturing Portuguese ships, detaining Portuguese prisoners, and executing some who were captured. The ex-sultan
Mahmud Shah of Malacca had also sent diplomatic envoys to Ming dynasty China to seek aid in expelling the Portuguese from Malacca; although this was never carried out, the sultan's mission did succeed in convincing the Ming court in rejecting the Portuguese embassy of Andrade and Pires after the death of the Zhengde Emperor in 1521. Despite these initial hostilities, a Portuguese settlement was eventually established at
Macau and granted consent by the Chinese government in 1557, while annual Portuguese trade missions to
Shangchuan Island took place since 1549. The 1554
Luso-Chinese agreement finally legalized trade between the two realms. ==A captain in Sumatra==