The invention discloses a humidifier with an air purifier which comprises a humidifier body, a water tank, a water pump, a sand settling chamber, a water distributor, an air blower and an evaporator. The water tank is arranged in the humidifier body, the sand settling chamber is arranged at the bottom of the water tank, one side of the humidifier body is connected with the water pump through a water inlet pipeline, the water inlet pipeline is connected with the water tank, the water distributor is arranged at the top of the humidifier body, the water distributor is connected with the water tank through a water suction pipe, the evaporator is arranged between the water distributor and the water tank, the air blower is arranged on the humidifier body close to the evaporator, an air outlet is formed in the upper end of one side of the humidifier body, a sprinkler head is arranged at the lower end of the water distributor, and an ozone generator is positioned at the air outlet. The humidifier has the advantages that the water distributor and the sprinkler head can enable water to be easily heated and evaporated by the evaporator, the ozone generator can clean indoor air, the sand settling chamber can precipitate water from the water pump and can remove impurities in the water, and accordingly water quality is guaranteed. In addition, the service life of the humidifier is prolonged.