A detergent container comprises a container having a detergent accommodation space (2) used to store a detergent; a siphon component (3) arranged in the detergent accommodation space (2), and transferring, on the basis of the siphon principle, to an outer tub of a washing machine, the detergent in the detergent accommodation space (2); a residual liquid discharge channel (4) having a first end communicating with a lowest position of the detergent accommodation space (2), and a second end communicating with the outer tub of the washing machine; and a mass block (5) slidably arranged in the residual liquid discharge channel (4), and used to transfer, by means of vibrations generated when the washing machine operates, via the residual liquid discharge channel (4), and to the outer tub of the washing machine, a residual liquid in the detergent accommodation space (2).