When referring to the kind of trenches use in WWI, they can be defined as a long narrow ditch embanked with its own soil. During WWI trenches were used for concealment and protection during the battles/warfare.
Notice how deep this trench is. This is because trenches had to be deep in order to fully conceal the soldiers.