A plumbing traps work is a straightforward piece of pipe that is bent into a specific form to allow waste to pass through the PVC water pipes. Additionally, it keeps fluids in place to stop sewer gases from penetrating the building. In home applications, U, J, Q, or S-shaped pipes are typically found inside or directly beneath a plumbing fixture.