A moat is a large, deep and often water-filled fortification that specifically surrounds a castle, building or city. In some examples, it has been observed that it has evolved into more complex artificial lakes as a water barrier. In modern times, ditches or water barriers have started to be preferred visually as their preventive effects are lost.