Europeans did not gain significant footholds in Japan until 1854, when US Navy Commodore Matthew Perry forced the Tokugawa shogunate to end centuries of isolation (sakoku) and sign unequal treaties.
Prior to that, European contact was restricted to a Dutch trading post on Dejima island in Nagasaki harbor.