The invention relates to ultraviolet water treatment equipment with an impurity removal function. The ultraviolet water treatment equipment comprises a main body, an ultraviolet lamp, a first connecting pipe, a second connecting pipe, a fixing box, a drainage pipe, two fixing blocks, an impurity removing mechanism and a cleaning mechanism. The impurity removing mechanism comprises a filter screen,a cleaning assembly, a pressing plate, a communicating pipe and two air cylinders. The cleaning assembly comprises a rotating unit, a one-way bearing, a half gear, a rotating gear, a torsion spring,a first bearing, a rotating shaft, a connecting rope, a push plate and a first spring. The cleaning mechanism comprises a scraping rod, a worm wheel, a worm, a second bearing, a transmission gear, a rack and a connecting rod. The ultraviolet water treatment equipment with the impurity removal function has the advantages that the impurity removal mechanism is arranged, the function of removing impurities in sewage is achieved, and it is avoided that the penetrability of ultraviolet disinfection is reduced due to too many sewage impurities; the function of cleaning an ultraviolet lamp is achieved through the cleaning mechanism, the ultraviolet lamp is prevented from being covered with impurities to influence the lighting effect of the ultraviolet lamp, and thus the disinfection effect is prevented from being influenced.