<p>A motor includes: a rotary shaft (12); a rotor (13) that is provided on the rotary shaft (12) so as to be rotatable together with the rotary shaft (12); a stator (14) that is provided radially outward of the rotor (13); a housing (11) that supports the stator (14); a resolver (15) that has a resolver rotor (35) rotatable together with the rotary shaft (12) and a resolver stator (34) radially facing the resolver rotor (35); and a resolver unit (21) that is an assembly component including the resolver stator (34). The resolver unit (21) includes a bearing (20) that rotatably supports the rotary shaft (12) and a case member (41) that has a first fitting portion (46) to which the resolver stator (34) is fitted and a second fitting portion (47) to which the bearing (20) fitted and that is detachably connected to the housing (11). At least part of the resolver unit (21) is arranged on a radially inner side of the rotor (13).
</p>