Under the Nara period Ritsuryō system, the area that is now Kanagawa Ward became part of Tachibana District in Musashi Province. During the Edo period, the area was "tenryō" territory controlled directly by the Tokugawa shogunate, but administered through various "hatamoto". The area prospered in the Edo period as Kanagawa-juku, a post station on the Tōkaidō connecting Edo with Kyoto. During the Bakumatsu period, Kanagawa was the location of the signing of the Convention of Kanagawa, which ended Japan’s national isolation policy and led to the normalization of diplomatic relations between the United States and Japan. The subsequent Treaty of Amity and Commerce (United States–Japan) led to the establishment of a treaty port for foreign commerce and settlement, which was initially stipulated to be Kanagawa. However, for security reasons, the actual settlement was established at neighboring Yokohama (present day Naka Ward). The Namamugi Incident, which led to the 1863 Anglo-Satsuma War, occurred in Kanagawa.