Hachiōji (八王子市 Hachiōji-shi) is a city located in the western portion of Tokyo Metropolis, Japan. As of 31 March 2021, the city had an estimated population of 561,344. The area of present-day Hachiōji was part of the ancient Musashi Province. It has been an important junction point and post town along the Kōshū Kaidō, the main road that connected the historical Edo (today's Tokyo) with western Japan. Hachiōji Castle was built during the Sengoku period in 1584 by Hōjō Ujiteru but was destroyed in 1590 by Toyotomi Hideyoshi. During the Edo period, the area was tenryō, controlled directly by the Tokugawa shogunate. In the post-Meiji Restoration cadastral reform of 22 July 1878, the area became part of the Minamitama District in Kanagawa Prefecture. The town of Hachiōji was created on 1 April 1889, with the establishment of the modern municipal system. Minaitama District was transferred to the administrative control of Tokyo Metropolis on 1 April 1893. Hachiōji gained city status on 1 September 1917. During the 1964 Summer Olympics, the city hosted road cycling events. A velodrome in the city played host to the track cycling events. Hachiōji became a Core city on 1 April 2015 with increased local autonomy.