The invention relates to a method for restraining the torsional vibration of a rotor of a motor closed-loop speed control system. The method comprises the following steps: (1) collecting a revolving speed signal of the motor rotor through a signal collecting unit, and enabling the revolving speed signal to pass through a band pass filter unit to extract a torsional vibration component signal of the rotor; (2) enabling the torsional vibration component signal of the rotor to pass through a lead-lag unit to regulate the phase position of the torsional vibration signal, and obtaining an electromagnetic torque component signal being phase-opposite with the torsional vibration component signal of the rotor; and (3) regulating the gain amplification times of a gain amplification unit, adding the electromagnetic torque component signal into a revolving speed feedback point through an amplitude limiting unit to generate an electromagnetic torque component being phase-opposite with the torsional vibration signal of the rotor, and therefore effectively restraining the torsional vibration of the motor rotor and power vibration. According to the method, the divergent torsional vibration of the rotor can be restrained, meanwhile the power vibration due to the torsional vibration of the rotor can also be restrained, and the signal collection is simple and convenient. The method has the advantages of simple structure, lower cost, less regulation parameters, easiness in realization and the like and has a larger promotional value.