A parking device (20, 201) mounted on a vehicle to establish a parking locked state and a parking unlocked state, comprising: a hydraulic unit (30, 210) that includes a first shaft member (32, 212) that is movable in a first direction, a first elastic member (42, 216) that urges the first shaft member (32, 212) toward a lock side on which the parking locked state is established, in the first direction, using an elastic force, and a hydraulic pressure generation portion that moves the first shaft member (32, 212) toward an unlock side which is opposite to the lock side, in the first direction, using a hydraulic pressure against the elastic force of the first elastic member (42, 216); and an electromagnetic unit (50, 150, 220, 320) that includes a second shaft member (52, 221) that is movable in a second direction which is orthogonal to the first direction, a second elastic member that urges the second shaft member (52, 221) toward the first shaft (32, 212) member, in the second direction, using an elastic force, and a magnetic force holding portion that can hold the second shaft member (52, 221) on a side of the first shaft member (32, 212) using a magnetic force, characterized in that: the first shaft member (32, 212) is provided with an abutment portion that can abut against a distal end portion of the second shaft member (52, 221); the abutment portion is constituted as a roller (48, 213) that is rotatable with respect to the first shaft member (32, 212); an unlock side surface of the distal end portion of the second shaft member (52, 221) on the unlock side is formed to be inclined toward the unlock side from a distal end side toward a base end side of the second shaft member (52, 221); and the electromagnetic unit (50, 150, 220, 320) is configured to allow the second shaft member (52, 221) to be moved away from the first shaft member (32, 212), in the second direction, by a force applied from the abutment portion of the first shaft member (32, 212) to the inclined distal end portion of the second shaft member (52, 221) during movement of the first shaft member (32, 212) when the second shaft member (52, 221) is not held on the first shaft member side by the magnetic force. a hydraulic unit (30, 210) that includes a first shaft member (32, 212) that is movable in a first direction, a first elastic member (42, 216) that urges the first shaft member (32, 212) toward a lock side on which the parking locked state is established, in the first direction, using an elastic force, and a hydraulic pressure generation portion that moves the first shaft member (32, 212) toward an unlock side which is opposite to the lock side, in the first direction, using a hydraulic pressure against the elastic force of the first elastic member (42, 216); and an electromagnetic unit (50, 150, 220, 320) that includes a second shaft member (52, 221) that is movable in a second direction which is orthogonal to the first direction, a second elastic member that urges the second shaft member (52, 221) toward the first shaft (32, 212) member, in the second direction, using an elastic force, and the first shaft member (32, 212) is provided with an abutment portion that can abut against a distal end portion of the second shaft member (52, 221); the abutment portion is constituted as a roller (48, 213) that is rotatable with respect to the first shaft member (32, 212); an unlock side surface of the distal end portion of the second shaft member (52, 221) on the unlock side is formed to be inclined toward the unlock side from a distal end side toward a base end side of the second shaft member (52, 221); and the electromagnetic unit (50, 150, 220, 320) is configured to allow the second shaft member (52, 221) to be moved away from the first shaft member (32, 212), in the second direction, by a force applied from the abutment portion of the first shaft member (32, 212) to the inclined distal end portion of the second shaft member (52, 221) during movement of the first shaft member (32, 212) when the second shaft member (52, 221) is not held on the first shaft member side by the magnetic force.