You can drain it directly into a drain pipe. Just make sure the the top of the drain pipe is even with the top of the washing machine. If not, the water from the washing machine will drain all of the time. There is no valve in the machine to stop the water from draining. The washing machine drains using a pump motor.