Japan had an edict called “Sakoku”, literally means “closed country”, which had been enforced within the Edo Era, from 1640 to 1854. Japan had no foreign relations; the foreigners (except for the Dutch, Chinese, and Korean) were not allowed to enter Japan, as well as the Japanese living abroad. Immigration was also prohibited. The two hundred years of isolation was initially a policy to limit foreign trade adopted by the Tokugawa shogunate, and to halt the proselytization of Christianity. The long period of isolation had ended when the Perry Expedition forcibly opened Japan to Western trade.
In the end, the policy has brought positive outcomes to Japan. Aside from expansion of urbanization, economic prosperity, and enriching their own culture in setting unique identity, with this edict, they were able to maintain peace, and hinder the colonizers from occupying their land.