The present invention relates to the field of gate valves, and specifically discloses a
gate valve with an automatic cleaning function, comprising a mounting plate, a support plate arranged on the mounting plate, a
pipe installed on the support plate, a control component for controlling the flow of liquid arranged on the
pipe, a filter component arranged on the
pipe upstream of the control component, and an
impurity detector for detecting liquid impurities arranged on the pipe downstream of the control component. The present invention can store liquid by utilizing the
impact force and pressure of the liquid, and at the same time can release a part of the liquid containing impurities, completely remove the contaminated liquid, accumulate another part of the liquid to generate gravity, spray the stored liquid onto the filter component, and use the stored liquid for automatic cleaning, thereby reducing the
pollution of downstream equipment, reducing the risk of cross
contamination, improving the self-cleaning function of the device, improving the quality of the liquid, and thus improving the quality of the product.