Since the beginning of the seventeenth century, the Tokugawa shogunate pursued a policy of isolating the country from outside influences.
By the early nineteenth century, this policy of isolation was increasingly under challenge.