When were the ports of japan opened?

In 1868 an American fleet sailed to Japan and forced them to end there isolation.