The City of Yokohama is the capital of Kanagawa Prefecture and the second-largest city in Japan after Tokyo. It is also a major port and commercial hub and historically one of the first cities to be opened to foreigners during the rule of the Tokugawa Shogunate.