The disclosure discloses a driving machine includes a trigger, a first switch turned on or off by an operation of the trigger, a push lever that moves in response to an operation of pressing an ejection port of a fastener against a driven material, and a second switch turned on or off by movement of the push lever. The driving machine drives the fastener when the first switch and the second switch are both in the ON state. The trigger includes a switching mechanism to switch between a single-shot driving mode and a continuous-shot driving mode.