The invention relates to a monitoring camera with a self-cleaning function based on the Internet of things. The monitoring camera comprises a shell, a cleaning mechanism, a first support rod, a secondsupport rod, a steering mechanism, a central control mechanism and a fixing block, wherein the steering mechanism comprises a driving mechanism, a first transmission rod, a second transmission rod and a third transmission rod; the driving mechanism comprises a sliding block, a third gear, a driving shaft, a second motor and driving teeth; the cleaning mechanism comprises a support frame, a cleaning brush, a fourth transmission rod, a driving frame, a third support rod, a first gear, a second gear and a second motor. According to the monitoring camera with the self-cleaning function based on the Internet of things, upward and downward rotation of the monitoring camera is achieved via the steering mechanism, a shooting range is enlarged, a blind area range of the monitoring camera is effectively reduced, monitoring performance of the monitoring camera is improved, glass of the monitoring camera is cleaned by the cleaning mechanism, stains attached to the glass of the monitoring camera are reduced, and definition of images shot by the monitoring camera is improved.