Japan became isolated in the 1630's, when Tokugawa Ieyasu was worried about foreigners in Japan. The Spanish had settled in the Philippines, and Tokugawa ordered all Christians to leave the country. He also said that any Japanese who left the country and then came back would be killed. He banned most European trade and freed Japan of influences from outside countries. This continued for almost 200 years. Then, in American naval vessels, lead by Matthew C. Perry, landed in Japan. He opened Japan to the west and ended the 200 years of isolation from the outside world.