During the Edo period, the Utsunomiya area was ruled by a succession of "daimyō" clans under Utsunomiya Domain, and prospered from its location at the junction of the Nikkō Kaidō and the Ōshū Kaidō. During the Bakumatsu period Boshin War, the Battle of Utsunomiya Castle was a major conflict in the northern Kantō area. Following the Meiji restoration, Utsunomiya was briefly (1871–1873) part of Utsunomiya Prefecture, which was then merged into the new Tochigi Prefecture, and became capital of the prefecture in 1884. Utsunomiya became an important garrison for the Imperial Japanese Army.