In addition to the castle itself, the term refers to the entire Japanese castle structure surrounding the castle town with the outer wall, moat or Dorui (earthwork).
特に、城のほか城下町一帯も含めて外周を堀や城壁、土塁で囲い込んだ、日本の城郭構造をいう。