Beneath your bathroom or kitchen sink, you will find a plumbing fixture called a P-trap. The purpose of your P-trap is to capture the debris that drains from the sink, prevent clogs and prevent gas leaks from entering your home.