A motor assembly includes a motor including a rotor including a shaft rotatable about a rotation axis and a stator surrounding the rotor from radially outside, a housing that accommodates the motor, a bearing that is fixed to the housing and rotatably supports the shaft, a resolver including a resolver rotor fixed to the shaft and a resolver stator fixed to the housing, and a contact that has conductivity, is fixed to the housing, and is in contact with a contacted portion at an end portion on one axial side of the shaft. The housing includes an accommodation space in which the contacted portion of the shaft is accommodated. The contact and the resolver are side by side in a direction along a rotation axis in the accommodation space.