a tide gate or dam to prevent the overflow of water into marshland