A mosquito repeller includes a casing, a mosquito repellent liquid bottle, and a first heating element installed in the casing. The first heating element includes a first heat-generating body and a cotton swab. The first heat-generating body is inserted into the cotton swab, and an end of the cotton swab away from the first heat-generating body extends into the mosquito repellent liquid bottle. Since the first heat-generating body is inserted into the cotton swab, heat is concentrated at the center of the cotton swab, and the cotton swab is heated uniformly, and the vaporization of the mosquito repellent liquid is stable to improve the mosquito repelling effect of the mosquito repeller, while reducing the power consumption of the mosquito repeller, saving energy, avoiding a temperature rise of components near the heat-generating components, retarding the ageing of components, and extending the service life of the mosquito repeller.