Between 1639 and 1858 Japan was largely isolated from the outside world. Trade was prohibited except for two Dutch ships a year at Nagasaki. Chinese traders were allowed at Nagasaki as well. In 1858 Commodore Perry forced the Shogun government to allow trade. It is important to recognize that Perry was not forcing the Japanese merchants to trade, he was forcing the Shogun to stop preventing trade.