In some cases, defensive design was used even outside the castle, in the samurai residential area, such as in today's photo, taken in the old castle town of Hagi. Here, the streets were built with right angled corners called kaimagari, strategical places to be used as ambush points against the invading armies.
EXIF info:
Nikon D700
Lens: 35mm F/2D
Focal Length: 35mm
Aperture: F/7.1
Shutter Speed: 1/800s
ISO Sensitivity: ISO 320