A motor controller has an assist controller generating an assist instruction for a generation of an assist torque based on a detection value of a steering torque, a follow controller obtaining a target value of a physical quantity regarding a steering operation and generating a follow instruction, and a motor driver driving, according to a sum of the assist instruction and the follow instruction, a motor that generates the assist torque and an automatic steering toque. In addition, the follow controller changes, according to a degree of intervention by a driver that is detected by an intervention detector, responsiveness of the follow control, making it possible to naturally hand over a motor control to the driver or to a system when the driver or the system intervenes a current control of the motor that generates the assist torque and/or the steering torque.