Tool for driving in fasteners , in particular staples, comprising - a mechanical energy store for storing mechanical energy, in particular with a helical spring, - an ejecting device , which is able to be linearly moved in a guide device between a clamping position (S) and an ejecting position (A), by which energy from the mechanical energy store is able to be transferred to the fastener , wherein the ejecting device has a driver element and a shooting device , - an electric motor , preferably driven by an electrical energy store , and a spindle drive driven by the electric motor for converting a rotational movement of the electric motor into a linear movement of the ejecting device , wherein the driver element is able to be connected to the spindle drive and is able to be releasably coupled to the shooting device , and wherein a control device is provided, by which the direction of rotation of the electric motor is able to be controlled, and wherein the ejecting device is able to be moved in the direction (R S ) toward the clamping position (S) by rotation of the spindle drive in a first direction of rotation, and wherein the mechanical energy store is able to be loaded by the movement of the ejecting device in the direction (R S ) toward the clamping position (S), - a locking device for locking the shooting device in the clamping position (S), wherein the locking is able to be released and the shooting device is able to be moved in the direction (R A ) toward the ejecting position (A) by actuating the locking device , - preferably a magazine for storing fasteners , characterized in that the driver element is able to be moved in the direction (R A ) toward the ejecting position (A) through rotation of the spindle drive in a second direction of rotation and the locking of the shooting device is able to be released through the movement of the driver element in the direction (R A ) of the ejecting position (A) . - a mechanical energy store for storing mechanical energy, in particular with a helical spring, - an ejecting device , which is able to be linearly moved in a guide device between a clamping position (S) and an ejecting position (A), by which energy from the mechanical energy store is able to be transferred to the fastener , wherein the ejecting device has a driver element and a shooting device , - an electric motor , preferably driven by an electrical energy store , and a spindle drive driven by the electric motor for converting a rotational movement of the electric motor into a linear movement of the ejecting device , wherein the driver element is able to be connected to the spindle drive and is able to be releasably coupled to the shooting device , and wherein a control device is provided, by which the direction of rotation of the electric motor is able to be controlled, and wherein the ejecting device is able to be moved in the direction (R S ) toward the clamping position (S) by rotation of the spindle drive in a first direction of rotation, and wherein the mechanical energy store is able to be loaded by the movement of the ejecting device in the direction (R S ) toward the clamping position (S), - a locking device for locking the shooting device in the clamping position (S), wherein the locking is able to be released and the shooting device is able to be moved in the direction (R A ) toward the ejecting position (A) by actuating the locking device , - preferably a magazine for storing fasteners , <EOS>