A control device for an electric vehicle, comprising: - a motor configured to generate a torque for braking or driving a drive wheel (FL, FR) via a speed reduction mechanism and a drive shaft coupled to the speed reduction mechanism; - a torque command value calculation unit configured to calculate a rotational torque command value directed to the motor based on an accelerator operation or a brake operation by a driver; - a vibration suppression control torque calculation unit configured to calculate, in order to suppress a vibration component caused by a resonance of the vehicle, a vibration suppression control torque command value directed to the motor; and - a motor controller configured to control, based on each of the command values, the torque generated by the motor, characterized in that the control device comprises: - a vehicle stop state determination unit configured to determine a vehicle stop state and - a shift range detection unit configured to detect a shift range of the vehicle wherein: - the motor controller is further configured to set, when a predetermined condition is satisfied, the torque generated by the motor to zero after a predetermined period has elapsed, - the predetermined condition is that the vehicle stop state determination unit determines that the vehicle is in a stop state, or that the shift range detected by the shift range detection unit is a parking range or a neutral range, and - the motor controller is further configured to generate the torque, when the shift range detection unit detects a shift from a neutral range or a parking range to another range after the predetermined condition is satisfied. - a motor configured to generate a torque for braking or driving a drive wheel (FL, FR) via a speed reduction mechanism and a drive shaft coupled to the speed reduction mechanism; - a torque command value calculation unit configured to calculate a rotational torque command value directed to the motor based on an accelerator operation or a brake operation by a driver; - a vibration suppression control torque calculation unit configured to calculate, in order to suppress a vibration component caused by a resonance of the vehicle, a vibration suppression control torque command value directed to the motor; and - a motor controller configured to control, based on each of the command values, the torque generated by the motor, - a vehicle stop state determination unit configured to determine a vehicle stop state and - a shift range detection unit configured to detect a shift range of the vehicle - the motor controller is further configured to set, when a predetermined condition is satisfied, the torque generated by the motor to zero after a predetermined period has elapsed, - the predetermined condition is that the vehicle stop state determination unit determines that the vehicle is in a stop state, or that the shift range detected by the shift range detection unit is a parking range or a neutral range, and - the motor controller is further configured to generate the torque, when the shift range detection unit detects a shift from a neutral range or a parking range to another range after the predetermined condition is satisfied.