Castles in Japan began as fortresses for military defense. They were placed in strategic locations, along trade routes, roads, and rivers. Though castles continued to be built with these considerations, for centuries, fortresses were also built as centres of governance.