A detergent dispensing structure and a washing machine. The detergent dispensing structure comprises a water inlet valve (1), a water inlet pipe (2), and a dispensing device (3). One end of the water inlet pipe (2) is connected to a water outlet of the water inlet valve (1), and the other end extends into the dispensing device (3) and is provided with a water pipe outlet portion (201). A ventilation structure located inside the dispensing device (3) is provided between the water inlet valve (1) and the water pipe outlet portion (201). The ventilation structure drains water in the water inlet pipe (2) and the water pipe outlet portion (201) by means of a hydraulic pressure formed when closing the water inlet valve (1). The detergent dispensing structure can effectively overcome the defect that the pipe in the dispensing device (3) and the water pipe outlet portion (201) are easy to store water, is simply structured, reduces the probability of failure occurrence of the washing machine, and also reduces the prod