The invention discloses an industrial robot with an automatic cleaning function, and belongs to the technical field of mechanical manufacturing equipment. The industrial robot comprises a shell, the top of the shell is of an open structure, a guide plate is fixedly connected to the side wall of the top of the shell, a motor a is mounted at one end of the bottom surface of the guide plate, and an output shaft of the motor a is fixedly connected with one end of a lead screw; and the other end of the lead screw is rotationally connected to the bottom face of the guide plate through a bearing seat, a screw sleeve is connected to the lead screw in a spiral transmission manner, the screw sleeve is embedded in a movable frame plate, and a machining assembly is installed on the movable frame plate. Workers do not need to conduct cleaning work, chippings and the like can be effectively prevented from being accumulated on a workbench plate, multi-station machining work can be conducted conveniently, the machining efficiency is improved, the industrial requirement is met, the chipping cleaning effect is improved, cleaning is comprehensive, it can be guaranteed that no chippings are accumulated on the workbench plate, chippings can be continuously discharged, the automatic cleaning function is achieved, and overall continuous operation is facilitated.