A moat is a deep, wide ditch or canal that surrounds a castle, fortress, or other building. It was originally built to provide protection against attackers by making it difficult for them to approach and enter the structure. The water in the moat could also be used as a source of water supply during sieges. Today, moats are often seen as an aesthetic feature that adds character to a property or building.