The invention discloses a dual-purpose dust collector which comprises a blowing sucking head, a double-layer sucking cylinder, a double-channel hose, a machine body, a light sensor, a blowing hole, an ultraviolet lamp tube, a lamp tube hairbrush, an anode ring, a cathode ring, a rotating fork, lamp tube motor, a water-stop sheet, an air outlet pipeline, a main motor, an impeller and an air inlet pipeline. The double-layer sucking cylinder is provided with two layers. A center air sucking opening of the blowing sucking head is communicated with a middle air sucking pipeline of the double-layer sucking cylinder. Two blowing pipes on the upper side of the blowing sucking head are communicated with two blowing pipes on the outer side of the double-layer sucking cylinder, the upper end of the double-layer sucking cylinder is communicated with the machine body through the double-channel hose, an upper cover of the machine body is arranged at the upper end of the machine body, and four wheels are arranged on the four corners of the bottom of the machine body respectively. By means of the dual-purpose dust collector, dust on the surface of carpets and inside the carpets can be cleansed efficiently, harmful microbes on the carpets can be killed, and body health of people is protected.