What is a moat?

A moat is a deep, wide, ditch, which is often filled with water.
A moat is a deep trench that is filled with water and surrounds a castle or town. Its main function serves as a defense against attack.