Which factor enabled Japan to pursue a policy of isolationism in the seventeenth century?

The main factor that enabled Japan to pursue a policy of isolationism in the seventeenth century was the Tokugawa shogunate's policy of sakoku, which was a policy of national seclusion. This policy was implemented in 1639 and lasted until 1853. It restricted foreign trade and travel, and prohibited Japanese citizens from leaving or entering the country.