An electronic padlock, which comprises a body and a shackle, which body has latch parts, a cam piece and an electronic actuator, which electronic actuator comprises a pivot shaft, which pivot shaft is arranged to turn the cam piece to release the latch parts from a locking state and to turn the cam piece to hold the latch parts in the locking state, in which locking state the latch parts prevent the shackle from being moved to open the electronic padlock, characterized in that between the electronic actuator and cam piece there is a blocking mechanism in the direction of the pivot shaft of the electronic actuator, which blocking mechanism connects the pivot shaft of the electronic actuator functionally to the cam piece to turn it with the electronic actuator and prevent any other turning of the cam piece in relation to the body, which blocking mechanism comprises a locking plate, a latch piece and a driver, which locking plate is connected to the pivot shaft of the electronic actuator, which locking plate has a peripheral edge, which has a release recess and which locking plate is arranged to be turned in relation to the driver, which driver has a torsion projection, which is connected to the cam piece, and which driver has a hole, in which the latch piece is placed, and the body has a recess for the latch piece, which blocking mechanism is arranged to prevent turning of the cam piece, when the latch piece is partly in the recess and partly in the driver hole, and the peripheral edge of the locking plate prevents the latch piece from moving toward the pivot shaft, and which blocking mechanism is arranged to allow turning of said cam piece, when the electronic actuator has by turning the pivot shaft turned the release recess of the locking plate to the driver hole, allowing the latch piece to move toward the pivot shaft, whereby the peripheral edge of the locking plate has protrusions away from the pivot shaft for transmitting torque from the locking plate to the driver whereby still continuing the turning of the pivot shaft with the electronic actuator, in addition to the locking plate, the driver and the thereto connected cam piece also turn, the blocking mechanism further comprising a spring, which is supported on the driver and which spring has a spring head, and which locking plate comprises a hole for the spring head, which spring head is in the hole, when the latch piece is partly in the recess and partly in the driver hole, and the peripheral edge of the locking plate prevents the latch piece from moving toward the pivot shaft. which blocking mechanism comprises a locking plate, a latch piece and a driver, which locking plate is connected to the pivot shaft of the electronic actuator, which locking plate has a peripheral edge, which has a release recess and which locking plate is arranged to be turned in relation to the driver, which driver has a torsion projection, which is connected to the cam piece, and which driver has a hole, in which the latch piece is placed, and the body has a recess for the latch piece, which blocking mechanism is arranged to prevent turning of the cam piece, when the latch piece is partly in the recess and partly in the driver hole, and the peripheral edge of the locking plate prevents the latch piece from moving toward the pivot shaft, and which blocking mechanism is arranged to allow turning of said cam piece, when the electronic actuator has by turning the pivot shaft turned the release recess of the locking plate to the driver hole, allowing the latch piece to move toward the pivot shaft, whereby the peripheral edge of the locking plate has protrusions away from the pivot shaft for transmitting torque from the locking plate to the driver whereby still continuing the turning of the pivot shaft with the electronic actuator, in addition to the locking plate, the driver and the thereto connected cam piece also turn, the blocking mechanism further comprising a spring, which is supported on the driver and which spring has a spring head, and which locking plate comprises a hole for the spring head, which spring head is in the hole, when the latch piece is partly in the recess and partly in the driver hole, and the peripheral edge of the locking plate prevents the latch piece from moving toward the pivot shaft.