The invention relates to a surveillance camera with a cleaning function, which comprises a control box, a camera, a protective cover and a connecting plate, wherein the protective cover is fixed at the bottom end of the control box; the camera is disposed in the protective cover; the connecting plate is arranged above the control box; a control mechanism is disposed in the control box; an adjustment mechanism is disposed in the protective cover; the adjustment mechanism comprises a rotation shaft, an adjustment box, an adjustment motor, a screw rod, a sliding block and an adjustment component;the control mechanism comprises a rotating plate, a cleaning rod, a connecting shaft, a control assembly and two support bars; the control assembly comprises a power unit and an on-off unit; the power unit comprises a power motor, a transmission shaft, a drive gear, a driven gear, a driven shaft, a drive shaft, a drive cone friction wheel and a driven cone friction wheel. The surveillance camerawith the cleaning function realizes the function of cleaning dust through the control mechanism as well as realizes the function of adjusting the light through the adjustment mechanism.