(1):

(n.) A wall built across the ditch of a fortification, with a sluice gate to regulate the height of water in the ditch on both sides of the wall.

(2):

(n.) A cofferdam.