The invention relates to a separating machine. The separating machine comprises a box body, a feeding bin, an air compressor, an upper screen, a lower screen, pin shafts, a rack, a rotating shaft, a tooth-missing gear, a connecting rod, a limiting spring, a motor and a material collecting groove, wherein the feeding bin is arranged at the top end surface of the box body, the material collecting groove is formed in the bottom end surface of the interior of the box body, the air compressor is arranged at the left end surface of the interior of the box body, the upper screen and the lower screenare rotationally connected to the interior of the box body, the rack is connected in the box body in a sliding mode, the connecting rod is fixedly arranged at the right end of the rack, the two ends of the connecting rod are movably connected to the pin shafts, the tooth-missing gear is arranged on the rotating shaft, the rotating shaft is fixedly connected with the output end of the motor, the upper screen is connected to the top end surface of the box body through the limiting spring, and the tooth groove of the tooth-missing gear is meshed with the tooth groove of the rack. By the design, the two screens are driven to rotate in a reciprocating mode through the cooperation of an incomplete gear mechanism and the limiting spring, impurities are enabled to roll on the screens, and the problem that the impurities cannot be screened due to stacking is solved.