A P-trap must be installed in any washing machine drain line that empties into a sewer line or septic tank. You can only install a line without a P-trap if your washing machine drains to a grey water tank.