Although he is often credited with opening Japan to the western world, Perry was not the first westerner to visit the islands. Portuguese, Spanish, and Dutch traders engaged in regular trade with Japan in the 16th and 17th centuries. Persistent attempts by the Europeans to convert the Japanese to Catholicism and their tendency to engage in unfair trading practices led Japan to expel most foreigners in 1639. For the two centuries that followed, Japan limited trade access to Dutch and Chinese ships with special charters.