In 1858, faced with the continuing threat of invasion, Japan signed the unequal treaties which opened up the country to trade on extremely unfavourable terms, including the imposition of extra-territoriality on its main ports, which excluded Western nationals from the requirements of Japanese law.

