An apparatus for driving a motor, the apparatus comprising: a first inverter including a plurality of first switching elements (S11, S12, S13, S14, S15, S16) and connected to a first end of each of windings respectively corresponding to a plurality of phases of the motor; a second inverter including a plurality of second switching elements (S21, S22, S23, S24, S25, S26) and connected to a second end of each of the windings; and a plurality of switches (S31, S32, S33) including first ends respectively connected to nodes to which the plurality of windings and the plurality of second switching elements are respectively connected and second ends connected to each other; characterized by a controller configured to drive the motor in one of a first driving mode for driving the motor by maintaining the plurality of second switching elements in an open state and performing pulse width modulation control for the plurality of first switching elements and a second driving mode for driving the motor by performing pulse width modulation control for the plurality of first switching elements and the plurality of second switching elements and to apply a dead time in which a state in which all of the plurality of second switching elements and the plurality of switches are turned off is maintained for a preset time at a time of switching between the first driving mode and the second driving mode, wherein, upon determining that switching from the first driving mode to the second driving mode is required in a first sampling period, the controller is configured to control the plurality of switches (S31, S32, S33) to switch from an ON state to an OFF state at a time when a second sampling period subsequent to the first sampling period has elapsed and a third sampling period subsequent to the second sampling period starts and to start pulse width modulation of the second switching elements (S21, S22, S23, S24, S25, S26) when the dead time has elapsed after the plurality of switches (S31, S32, S33) is turned off. a first inverter including a plurality of first switching elements (S11, S12, S13, S14, S15, S16) and connected to a first end of each of windings respectively corresponding to a plurality of phases of the motor; a second inverter including a plurality of second switching elements (S21, S22, S23, S24, S25, S26) and connected to a second end of each of the windings; and a plurality of switches (S31, S32, S33) including first ends respectively connected to nodes to which the plurality of windings and the plurality of second switching elements are respectively connected and second ends connected to each other; characterized by a controller configured to drive the motor in one of a first driving mode for driving the motor by maintaining the plurality of second switching elements in an open state and performing pulse width modulation control for the plurality of first switching elements and a second driving mode for driving the motor by performing pulse width modulation control for the plurality of first switching elements and the plurality of second switching elements and to apply a dead time in which a state in which all of the plurality of second switching elements and the plurality of switches are turned off is maintained for a preset time at a time of switching between the first driving mode and the second driving mode, wherein, upon determining that switching from the first driving mode to the second driving mode is required in a first sampling period, the controller is configured to control the plurality of switches (S31, S32, S33) to switch from an ON state to an OFF state at a time when a second sampling period subsequent to the first sampling period has elapsed and a third sampling period subsequent to the second sampling period starts and to start pulse width modulation of the second switching elements (S21, S22, S23, S24, S25, S26) when the dead time has elapsed after the plurality of switches (S31, S32, S33) is turned off.