Utsunomiya Castle was first built in the Heian period by either Fujiwara Hidesato or Fujiwara Sōen around the year 1063. This castle was built on a small hill south of Utsunomiya Futarayama Jinja, the ichinomiya of Shimotsuke Province, on a juncture of the Ōshū Kaidō and the Nikkō Kaidō highways. Fujiwara Sōen played an important role in the Former Nine Years War and was the ancestor of the Utsunomiya clan, who dominated the area for the next 500 years, through the Kamakura and Muromachi periods. During the Sengoku period, the castle was greatly enlarged, enclosing an area over four kilometers in diameter with a series of concentric moats and high earthen ramparts, and came to be renowned as one of the seven major castles of the Kantō region. The Utsunomiya successfully defended the castle against repeated attacks by the Odawara Hōjō clan. However, the Utsunomiya clan was dispossessed of their holdings in 1597 by Toyotomi Hideyoshi, and the castle came under the control of the Gamo clan, based in Aizu. With the establishment of the Tokugawa shogunate, Utsunomiya Castle became the center of Utsunomiya Domain, ruled by a succession of daimyo clans, beginning with the Okudaira in 1601. In 1619, Honda Masazumi was appointed daimyo of Utsunomiya. Assisted by an able administrative staff, he largely reconstructed the castle and hosted Shōgun Tokugawa Hidetada in the new palace when the shōgun was on his way to worship at the Nikkō Tōshō-gū. However, Honda Masazumi was accused in 1622 by his political enemies on trumped-up charges of planning to assassinate the shōgun using a trap with a falling ceiling in the shogunal guest chamber, and was exiled to Dewa Province. This Ni-no-maru Palace burned down in 1683. During the Boshin War of 1868, Utsunomiya Domain sided with the Imperial cause but came under attack by a pro-Tokugawa army led by Ōtori Keisuke and former Shinsengumi leader Hijikata Toshizō. The castle fell to the pro-Tokugawa forces after a fierce battle during which most of the structures were destroyed. Unable to hold the castle due to their limited numbers, the pro-Shogunal army soon abandoned the site and moved north. Following the establishment of the Meiji government, the site of the castle was used as a garrison location for the Imperial Japanese Army until 1890, when it was given over to private hands, with the central portion becoming a public park. In 2007, a large section of the walls, moats and two yagura on the site of the central bailey were reconstructed.