 Later, during the Edo period, the eastern parts of present-day Kobe came under the jurisdiction of the Amagasaki Domain and the western parts under that of the Akashi Domain, while the center was controlled directly by the Tokugawa shogunate.It was not until the abolition of the han system in 1871 and the establishment of the current prefecture system that the area became politically distinct.Hyōgo Port was opened to foreign trade by the Shogunal government at the same time as Osaka on January 1, 1868, just before the advent of the Boshin War and the Meiji Restoration.