Sakoku was a policy of isolation implemented by the Tokugawa shogunate in Japan that spanned the Edo period from 1603 to 1868. The policy restricted foreign trade and contact with the outside world, with few exceptions such as the Dutch trading post of Dejima in Nagasaki.