European traders and missionaries first arrived in Japan in the sixteenth century. In 1640, the government decided to expel all foreigners and seal off the country from all European influences in order to preserve traditional Japanese culture and society. When American and British whaling ships began to appear off Japanese coasts almost two hundred years later, the policy of exclusion was still in effect.
After several unsuccessful American attempts to establish commercial relations with Japan, Commodore Matthew Perry steamed into Edo (now Tokyo) Bay in 1853. Relying on gunboat diplomacy by threatening to attack, Perry demanded diplomatic negotiations with the emperor. Japan entered a grave crisis. Some Japanese military leaders urged resistance, but senior officials realized how defenseless their cities were against naval bombardment. Shocked and humiliated, they reluctantly signed a treaty with the United States that opened two ports and permitted trade. Over the next five years, more treaties spelled out the rights and privileges of the Western nations and their merchants in Japan. Japan was “opened.”