A drilling tool comprising: a drive source for generating a drive force; a bit attachment portion to which an end bit is attachable; a power transmission portion configured to apply a motive force the end bit attached to the bit attachment portion by receiving the drive force; an operation portion switchable between an ON-state and an OFF-state by a manual operation, the operation portion being configured to receive a setting operation, the setting operation being an operation for setting a stop condition to stop the drive source; and a controller configured to perform: a setting process to set the stop condition based on the setting operation received by the operation portion; a driving start process to start driving of the drive source; a driving stop process to stop driving of the drive source; and an acquiring process to acquire stop condition information based on the setting operation, wherein the controller performs the driving start process in response to a first switching operation, the first switching operation being an operation to switch the operation portion from the OFF-state to the ON-state, wherein the controller performs the driving stop process in response to a second switching operation, the second switching operation being an operation to switch the operation portion from the ON-state to the OFF-state, wherein, in the setting process, the controller sets the stop condition using the stop condition information acquired in the acquiring process, and wherein, in a state where the stop condition is set, even when the operation portion is in the ON-state, the controller performs the driving stop process in response to the stop condition being met while the drive source is being driven. a drive source for generating a drive force; a bit attachment portion to which an end bit is attachable; a power transmission portion configured to apply a motive force the end bit attached to the bit attachment portion by receiving the drive force; an operation portion switchable between an ON-state and an OFF-state by a manual operation, the operation portion being configured to receive a setting operation, the setting operation being an operation for setting a stop condition to stop the drive source; and a controller configured to perform: a setting process to set the stop condition based on the setting operation received by the operation portion; a driving start process to start driving of the drive source; a driving stop process to stop driving of the drive source; and an acquiring process to acquire stop condition information based on the setting operation, a setting process to set the stop condition based on the setting operation received by the operation portion; a driving start process to start driving of the drive source; a driving stop process to stop driving of the drive source; and an acquiring process to acquire stop condition information based on the setting operation, wherein the controller performs the driving start process in response to a first switching operation, the first switching operation being an operation to switch the operation portion from the OFF-state to the ON-state, wherein the controller performs the driving stop process in response to a second switching operation, the second switching operation being an operation to switch the operation portion from the ON-state to the OFF-state, wherein, in the setting process, the controller sets the stop condition using the stop condition information acquired in the acquiring process, and wherein, in a state where the stop condition is set, even when the operation portion is in the ON-state, the controller performs the driving stop process in response to the stop condition being met while the drive source is being driven.