After reluctantly accepting the Harris Treaty, Japan quickly signed similar treaties, called the Ansei Treaties (also known as the Ansei Five-Power Treaties, with Russia, France, Great Britain, and the Netherlands. The treaties stipulated that the citizens of those foreign nations would be allowed to reside and trade at will in the cities of Edo, Nagasaki, Niigata, Kobe and Yokohama. Those five cities were to be opened to foreign trade with the four Western nations in the treaties. In addition, the treaties stipulated that a system of extraterritoriality would provide for the subjugation of foreign residents to the laws of their own consular courts instead of the Japanese legal system.