Dikes are structures built near coastlines and rivers to prevent flooding of surrounding areas. They confine river flows, maintaining shipping routes while allowing faster water movement. Dikes are typically located alongside coastlines like the Wadden Sea, often connected to sluices, and serve similar flood-prevention functions as dams but are built closer to coasts. Dikes along rivers like the Po River and in the Wadden Sea control flooding through their placement.