The invention particularly relates to a magnetic separator comprising a magnet (3), a feed port (5), a stand (1), a fixed shaft (2), the magnet (3), a rotary drum (4), the feed port (5), a motor (7), a first discharge port (8) and a second discharge port (9), wherein the feed port (5) is positioned at the top end of the stand (1); and the first discharge port (8) and the second discharge port (9) are positioned at the lower end of the stand (1). The fixed shaft (2) is fixedly connected with the stand (1), the fixed shaft (2) is connected with the rotary drum (4) by a bearing, the magnetic (3) is positioned between the rotary drum (4) and the fixed shaft (2) and is connected with the fixed shaft (2), a power output end of the motor (7) is connected with a power input end of the rotary drum (4), a section of the magnet (3) is a sector magnet extending to the first discharge port (8) from the feed port (5), and the second discharge port (9) is positioned on the rear side of the sector magnet. By utilizing the magnetic separator, iron impurities can be automatically cleared, and the magnetic separation effect is good.