What is a deep trench around the rampart of a castle or other fortified place, sometimes filled with water; a ditch called?

moat — A deep trench around the rampart of a castle or other fortified place, sometimes filled with water; a ditch. (Webster's 1913.)

Sources