A ditch with water can be used for drainage and irrigation.

With or without water it can be used as a barrier, as an alternative for a fence.

A trench is a long narrow ditch.

Types and applications include: