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: