Together with the walls, which were built with firing holes, these moats were an effective defensive system. However, they also had another use: the inner moat creates a pond which was designed to be a source of water for fire prevention.
EXIF info:
Nikon Df
Lens: 24-70mm F/2.8G
Focal Length: 27mm
Aperture: F/7.1
Shutter Speed: 1/1600s
ISO Sensitivity: ISO 400