A motor controller configured to control an electric motor having a housing connected to a frame ground to which a negative terminal of a power supply is connected, the motor controller comprising: a drive circuit including series circuits of upper-stage switching elements (111, 113, 115) and lower-stage switching elements (112, 114, 116) connected in parallel to the power supply and provided for a plurality of phases, the drive circuit being configured to supply electric power to the electric motor; a first noise cancellation circuit; a second noise cancellation circuit; the motor controller being characterized by a cancellation circuit control unit, wherein the first noise cancellation circuit includes a first RLC circuit, a first switch element, and a pull-down resistor, the first RLC circuit being a series circuit of a first resistor, a first coil, and a first capacitor, one end of the first RLC circuit is electrically connected to a positive terminal of the power supply via the first switch element, and the other end of the first RLC circuit is electrically connected to the frame ground, a connection point between the first RLC circuit and the first switch element is electrically connected to the negative terminal of the power supply via the pull-down resistor, the second noise cancellation circuit includes a second RLC circuit, a second switch element, and a pull-up resistor, the second RLC circuit being a series circuit of a second resistor, a second coil, and a second capacitor, one end of the second RLC circuit is electrically connected to the negative terminal of the power supply via the second switch element, and the other end of the second RLC circuit is connected to the frame ground, a connection point between the second RLC circuit and the second switch element is electrically connected to the positive terminal of the power supply via the pull-up resistor, and the cancellation circuit control unit includes: a unit configured to turn ON the first switch element for a predetermined time at falling timings (t4, t5, t6) of phase voltages output from the drive circuit so that a noise cancellation current flows; and a unit configured to turn ON the second switch element for a predetermined time at rising timings (t1, t2, t3) of the phase voltages output from the drive circuit so that a noise cancellation current flows. a drive circuit including series circuits of upper-stage switching elements (111, 113, 115) and lower-stage switching elements (112, 114, 116) connected in parallel to the power supply and provided for a plurality of phases, the drive circuit being configured to supply electric power to the electric motor; a first noise cancellation circuit; a second noise cancellation circuit; the motor controller being characterized by a cancellation circuit control unit, wherein the first noise cancellation circuit includes a first RLC circuit, a first switch element, and a pull-down resistor, the first RLC circuit being a series circuit of a first resistor, a first coil, and a first capacitor, one end of the first RLC circuit is electrically connected to a positive terminal of the power supply via the first switch element, and the other end of the first RLC circuit is electrically connected to the frame ground, a connection point between the first RLC circuit and the first switch element is electrically connected to the negative terminal of the power supply via the pull-down resistor, the second noise cancellation circuit includes a second RLC circuit, a second switch element, and a pull-up resistor, the second RLC circuit being a series circuit of a second resistor, a second coil, and a second capacitor, one end of the second RLC circuit is electrically connected to the negative terminal of the power supply via the second switch element, and the other end of the second RLC circuit is connected to the frame ground, a connection point between the second RLC circuit and the second switch element is electrically connected to the positive terminal of the power supply via the pull-up resistor, and the cancellation circuit control unit includes: a unit configured to turn ON the first switch element for a predetermined time at falling timings (t4, t5, t6) of phase voltages output from the drive circuit so that a noise cancellation current flows; and a unit configured to turn ON the second switch element for a predetermined time at rising timings (t1, t2, t3) of the phase voltages output from the drive circuit so that a noise cancellation current flows. a unit configured to turn ON the first switch element for a predetermined time at falling timings (t4, t5, t6) of phase voltages output from the drive circuit so that a noise cancellation current flows; and a unit configured to turn ON the second switch element for a predetermined time at rising timings (t1, t2, t3) of the phase voltages output from the drive circuit so that a noise cancellation current flows.