The present invention provides an one-body motor integrating a brake. The motor comprises a casing; a servo motor including a motor casing, a front end cover, a rear end cover, a spindle which is located in the motor casing, wherein the front end cover is cyclic annular, and the front side of the front end cover is provided with a front annular groove and a plurality of blind holes, and the partial cross section of the front end of the spindle is elliptical; a brake consisting of a coil, a movable iron core, a friction plate, a brake disc, a fixing plate, an external gear and a plurality of brake springs, wherein the coil is embedded in the first annular groove, the movable iron core is located at the outer sides of the front end cover and the coil, one end of each brake spring inserts one blind hole, the other one end of each brake spring is sleeved and fixed at the front end of the spindle, the brake disc is located at the outer side of the movable iron core and is provided with inner teeth engaged with the external gear, the fixing plate is located at the outer side of the brake disc, and the friction plate is arranged between the movable iron core and the brake disc and between the fixing plate and the brake disc; and an output shaft. The one-body motor integrating a brake at least integrates the servo motor and the brake so as to reduce the design and installation error caused by the split-type structure.