The policy was enacted by the Tokugawa shogunate under Tokugawa Iemitsu through a number of edicts and policies from 1633-1639 and remained in effect until 1853 with the arrival of Commodore Matthew Perry and the opening of Japan . The policy was enacted by the Tokugawa shogunate under Tokugawa Iemitsu through a number of edicts and policies from 1633 â `` 1639 and remained in effect until 1853 with the arrival of Commodore Matthew Perry and the opening of Japan .