The traps in your plumbing perform an important function. Traps are the curved section of the drain pipe — S-shaped, U-shaped or J-shaped — that hold on to a small amount of the water that goes down the drain. The water forms a seal and blocks sewer gases from entering through the drain.