Both the Ming and Qing rulers of China discouraged foreign trade and tried to keep contact with the outside world to a minimum