Why was Japans ports closed of to the rest of the world during the 18 hundreds?

by TwilightStarkle
RedOctober3

I don't know much about it but I have read a few books which I can't remember much of. Until a better answer appears I would just say that it was due to the Japanese foreign policy which closed off ports to foreign ships. I think they allowed certain nations the right to trade at times.