An in-wheel motor comprising: a first motor; a second motor; a first sun gear connected to the first motor; a first pinion gear that meshes with the first sun gear; a first carrier for holding the first pinion gear so that the first pinion gear rotates and the first pinion gear revolves around the first sun gear; a clutch device for restricting the rotation of the first carrier in both directions; a first ring gear that meshes with the first pinion gear and is connected to the second motor; a second sun gear connected to the first motor; a second pinion gear that meshes with the second sun gear; a third pinion gear that meshes with the second pinion gear; a second carrier for holding the second and third pinion gears so that the second and third pinion gears rotate, respectively and the second and third pinion gears revolve around the second sun gear, the second carrier being connected to the first ring gear; and a second ring gear that meshes with the third pinion gear, wherein the in-wheel motor operates so as to switch between a first speed change state and a second speed change state, in the first speed change state, the rotation directions of the first and second sun gears are opposite to the direction of the rotation of the first carrier restricted by the clutch device and absolute values of rotational speeds of the first and second sun gears are larger than an absolute value of a rotational speed of the first carrier of which the rotation is restricted by the clutch device, and in the second speed change state, the rotation directions of the first and second sun gears are the same as the direction of the rotation of the first carrier restricted by the clutch device, wherein the clutch device is configured to restrict the rotation of the first carrier in the first speed change state, and allow the rotation of the first carrier in the second speed change state, characterized in that the clutch device includes: an outer member that is fixed to a static system; an inner member that is connected to the first carrier; a plurality of rollers; and a holder for holding the plurality of rollers, and wherein a frictional engagement member of the holder is engaged with an input portion for either one of the first sun gear, the second sun gear, or a rotor of the first motor, and a relative phase of the holder relative to the inner member is changed by a friction force generated by the frictional engagement member, so that the clutch device switches the allowance and restriction of the rotation of the first carrier. a first motor; a second motor; a first sun gear connected to the first motor; a first pinion gear that meshes with the first sun gear; a first carrier for holding the first pinion gear so that the first pinion gear rotates and the first pinion gear revolves around the first sun gear; a clutch device for restricting the rotation of the first carrier in both directions; a first ring gear that meshes with the first pinion gear and is connected to the second motor; a second sun gear connected to the first motor; a second pinion gear that meshes with the second sun gear; a third pinion gear that meshes with the second pinion gear; a second carrier for holding the second and third pinion gears so that the second and third pinion gears rotate, respectively and the second and third pinion gears revolve around the second sun gear, the second carrier being connected to the first ring gear; and a second ring gear that meshes with the third pinion gear, wherein the in-wheel motor operates so as to switch between a first speed change state and a second speed change state, in the first speed change state, the rotation directions of the first and second sun gears are opposite to the direction of the rotation of the first carrier restricted by the clutch device and absolute values of rotational speeds of the first and second sun gears are larger than an absolute value of a rotational speed of the first carrier of which the rotation is restricted by the clutch device, and in the second speed change state, the rotation directions of the first and second sun gears are the same as the direction of the rotation of the first carrier restricted by the clutch device, wherein the clutch device is configured to restrict the rotation of the first carrier in the first speed change state, and allow the rotation of the first carrier in the second speed change state, characterized in that the clutch device includes: an outer member that is fixed to a static system; an inner member that is connected to the first carrier; a plurality of rollers; and a holder for holding the plurality of rollers, and an outer member that is fixed to a static system; an inner member that is connected to the first carrier; a plurality of rollers; and a holder for holding the plurality of rollers, and wherein a frictional engagement member of the holder is engaged with an input portion for either one of the first sun gear, the second sun gear, or a rotor of the first motor, and a relative phase of the holder relative to the inner member is changed by a friction force generated by the frictional engagement member, so that the clutch device switches the allowance and restriction of the rotation of the first carrier.