The invention relates to an anti-explosion permanent magnet direct-current brushless motor with a controller, mainly comprising a motor, a stator, a rotor, a controller, a connecting box, a strong current connector post, a weak current patching panel, a protective cover, a fan, a motor shaft, a sealing bearing, a stator coil, a stator silicon steel sheet, a rotor neodymium iron boron magnet strip, a position sensor, a magnetic disc and a cable, wherein a structure for connecting the stator coil, the silicon steel sheet, the rotor neodymium iron boron magnet strip, the position sensor, the magnetic disc and the fan is adopted in the motor; the sealing bearing is used as the bearing of the motor, and the controller adopts microcomputer program control; and strong current control and weak current control are combined. The motor and the controller have advanced design, compact structure, safety, stability, reliability, high efficiency, energy saving, large overload torque, dust and water proofing, no brush and stepless speed change and is an ideal anti-explosion, permanent magnet, direct current and brushless motor with a brake.