The invention relates to an automatic cleaning device for a solar water heater. The automatic cleaning device for the solar water heater comprises a trolley, a distribution box, a circulating water tank, a steam water tank, a circulating water pump, a steam water pump, an electric heating evaporator, an electromagnetic descaling device, a trailer, a drying air pipeline, a steam pipeline, a constant-pressure exhaust valve, a filter, an air extracting pump, an electric heater and a connecting pipe. According to the automatic cleaning device for the solar water heater, the electromagnetic descaling technology is adopted, safety and high efficiency are achieved, corrosion for the water heater and damage to human body due to reagent residue after descaling of a traditional chemical reagent are avoided; and meanwhile, high-pressure steam is adopted to clean the surface of a heat collecting pipe, and drying with hot air is conducted; and the thermal decomposition function of steam is adopted, the sticky property of sediment and stain is quickly dissolved, so that the sediment and stain are separated from the heat collecting pipe, water consumption is reduced, and the surface of the heat collecting pipe is not damaged.