When Japan opened to foreign trade in 1859 (after over 220 years of self isolation policy), only three ports were accessible to traders - Nagasaki in the south, Yokohama in central Japan, and Hakodate in the north.
Many Chinese, Russians, and Europeans set up businesses in Hakodate. Foreign traders left their marks which are still visible and felt today.