A drain trap is a dip in the drain pipe of sinks, toilets, floor drains, etc., which is designed to stay filled with water, thereby preventing sewer gases from escaping into the room.