A washing machine, comprising: a cabinet provided with an inlet port formed on part of a front panel to put laundry thereinto and a door configured to open or close the inlet port ; a tub provided within the cabinet to store wash water therein; a drum communicated with the inlet port , and rotatably provided within the tub ; a detergent dispenser provided below the inlet port and including an automatic detergent supply unit ; a water passage configured to supply wash water from a water source to at least one of the tub and the detergent dispenser ; a circulation pump configured to circulate wash water or wash water mixed with detergent to the tub ; and a connecting passage configured to connect the tub and the detergent dispenser to transfer wash water stored in the tub to the detergent dispenser and transfer detergent stored in the detergent dispenser to the tub , wherein the connecting passage includes a first detergent supply passage configured to connect the detergent dispenser and a bottom surface of the tub to transfer wash water stored in the tub to the detergent dispenser or to transfer the detergent of the detergent dispenser to the bottom surface of the tub , characterized in that the connecting passage further includes a second detergent supply passage , one end thereof being connected to a water drain port of the automatic detergent supply unit , the other end thereof being connected to an upper portion of a gasket of the tub to transfer detergent stored in the detergent dispenser to the tub ; wherein an upper end portion of the second detergent supply passage passes through the upper part of the gasket and protrudes into the drum ; wherein a nozzle is installed at the other end of the second detergent supply passage and configured to spray wash water mixed with detergent to an inside of the tub . a cabinet provided with an inlet port formed on part of a front panel to put laundry thereinto and a door configured to open or close the inlet port ; a tub provided within the cabinet to store wash water therein; a drum communicated with the inlet port , and rotatably provided within the tub ; a detergent dispenser provided below the inlet port and including an automatic detergent supply unit ; a water passage configured to supply wash water from a water source to at least one of the tub and the detergent dispenser ; a circulation pump configured to circulate wash water or wash water mixed with detergent to the tub ; and a connecting passage configured to connect the tub and the detergent dispenser to transfer wash water stored in the tub to the detergent dispenser and transfer detergent stored in the detergent dispenser to the tub , wherein the connecting passage includes a first detergent supply passage configured to connect the detergent dispenser and a bottom surface of the tub to transfer wash water stored in the tub to the detergent dispenser or to transfer the detergent of the detergent dispenser to the bottom surface of the tub , characterized in that the connecting passage further includes a second detergent supply passage , one end thereof being connected to a water drain port of the automatic detergent supply unit , the other end thereof being connected to an upper portion of a gasket of the tub to transfer detergent stored in the detergent dispenser to the tub ; wherein an upper end portion of the second detergent supply passage passes through the upper part of the gasket and protrudes into the drum ; wherein a nozzle is installed at the other end of the second detergent supply passage and configured to spray wash water mixed with detergent to an inside of the tub . <EOS>