Following the conquest of Malacca by the Portuguese in 1511, many Chinese traders avoided Portuguese Malacca, although the flow of emigrants from China continued. The Zhengde Emperor conducted several retaliation against the Portuguese due to their activities in Malacca during the Ming dynasty, following the arrival of their fleet in Canton. However, the Chinese emperor was reluctant to help the deposed Malaccan ruler reclaim his position, as the dynasty foreign policy was being changed to maintain friendly relations with the Portuguese.