A washing machine comprising: a cabinet; a tub disposed in the cabinet; and a detergent supply apparatus configured to supply a detergent to the tub, wherein the detergent supply apparatus comprises: a detergent container accommodating housing installed in the cabinet, and having an opening in the front portion of the cabinet; a detergent container configured to store the detergent, and to be removably inserted into the detergent container accommodating housing through the opening of the detergent container accommodating housing; characterized in that the washing machine further comprises a pump unit (220, 320, 420, 520) coupled with the rear portion of the detergent container and installed outside the detergent container, and configured to pump the detergent stored in the detergent container to the detergent container accommodating housing; a connector unit (250, 350, 450) configured to supply power to the pump unit, and including a first body (230, 330, 430, 530) attached on an outer portion of the pump unit, and a second body (240, 340, 440, 540) attached on the detergent container accommodating housing, wherein the first body is electrically connected to the second body by being removably attached to the second body; and a guide unit (235, 245, 335, 345, 435, 445, 535, 545) configured to guide coupling between the first body and the second body, and to prevent the detergent container from shaking, wherein the guide unit includes one or more guide protrusions (235, 335, 435, 535) formed on one of the first body and the second body, and one or more accommodating grooves (245, 345, 445, 545) formed on the other one of the first body and the second body and configured to accommodate the guide protrusions. a cabinet; a tub disposed in the cabinet; and a detergent supply apparatus configured to supply a detergent to the tub, a detergent container accommodating housing installed in the cabinet, and having an opening in the front portion of the cabinet; a detergent container configured to store the detergent, and to be removably inserted into the detergent container accommodating housing through the opening of the detergent container accommodating housing; a pump unit (220, 320, 420, 520) coupled with the rear portion of the detergent container and installed outside the detergent container, and configured to pump the detergent stored in the detergent container to the detergent container accommodating housing; a connector unit (250, 350, 450) configured to supply power to the pump unit, and including a first body (230, 330, 430, 530) attached on an outer portion of the pump unit, and a second body (240, 340, 440, 540) attached on the detergent container accommodating housing, wherein the first body is electrically connected to the second body by being removably attached to the second body; and a guide unit (235, 245, 335, 345, 435, 445, 535, 545) configured to guide coupling between the first body and the second body, and to prevent the detergent container from shaking, wherein the guide unit includes one or more guide protrusions (235, 335, 435, 535) formed on one of the first body and the second body, and one or more accommodating grooves (245, 345, 445, 545) formed on the other one of the first body and the second body and configured to accommodate the guide protrusions.