A door lock for an oven includes a lock housing, a geared motor, an actuating shaft to be driven by the geared motor, a retaining plate and a locking element formed as a lever to be operated by the actuating shaft. The lever is mounted on the retaining plate and has a lever axle for reversibly changing location relative to the lock housing. A spring exerts a force being overcome in an emergency-unlocking function permitting adjustment of the retaining plate to allow opening of the lever having been previously brought into a locking position by the actuating shaft, without further operation of the actuating shaft. The actuating shaft is adjustable along its axis by the lever having been unlocked in an emergency.