The invention discloses an air purifier with a cleaning function. The air purifier comprises a frame body, a pulling device, a filtering device, a cleaning device, a humidifying device and a material collecting box, wherein the frame body is provided with first through holes, second through holes, supporting blocks and universal wheels; the pulling device comprises a fixed block, a first connecting rod, a second connecting rod, a holding rod, a spring and a positioning block; the filtering device comprises a supporting plate, a supporting column, an outer filter screen, an inner filter screen, a fan, an upper filter screen and a partition plate; the cleaning device comprises cylinders, pushing rods, pushing blocks and cleaning rings; the humidifying device comprises a fixed ring and a sponge cushion; the material collecting box is annular and is positioned inside the frame body; the lower surface of the supporting plate is propped against the upper surface of the material collecting box; the upper end of each pushing rod is connected with the corresponding cylinder. According to the air purifier, dust on the filter screens can be cleaned, so that the purification effect of the air purifier can be maintained for a long time, and the service life of the air purifier is prolonged.