A drilling machine comprising: a body unit; an electromagnet attached to the body unit to securely hold the body unit in a position for a drilling operation by the drilling machine; a drilling drive unit having a motor for rotationally driving a drilling tool, the drilling drive unit being attached to the body unit so as to reciprocate relative to the body unit to move the drilling tool toward and away from a workpiece to be drilled by the drilling machine; and a drive control circuit provided in the body unit to drive and control the motor and the electromagnet; wherein the body unit has a battery receiving portion; wherein the drive control circuit is configured to drive and control the motor and the electromagnet by using a battery received in the battery receiving portion as a power source; wherein the drive control circuit has an electromagnet control section configured to control electric power to be supplied to the electromagnet from the battery, and the drive control circuit further has a remaining battery capacity detection section detecting a remaining capacity of the battery; and characterised in that the electromagnet control section is configured to control the electric power to be supplied to the electromagnet on a basis of the remaining capacity of the battery detected by the remaining battery capacity detection section so that in a standby state, where the drilling machine is securely held in position for the drilling operation at a constant angle by the electromagnet and the motor is not driven, the electric power to be supplied to the electromagnet is kept substantially constant even when the remaining capacity of the battery has decreased. a body unit; an electromagnet attached to the body unit to securely hold the body unit in a position for a drilling operation by the drilling machine; a drilling drive unit having a motor for rotationally driving a drilling tool, the drilling drive unit being attached to the body unit so as to reciprocate relative to the body unit to move the drilling tool toward and away from a workpiece to be drilled by the drilling machine; and a drive control circuit provided in the body unit to drive and control the motor and the electromagnet; wherein the body unit has a battery receiving portion; wherein the drive control circuit is configured to drive and control the motor and the electromagnet by using a battery received in the battery receiving portion as a power source; wherein the drive control circuit has an electromagnet control section configured to control electric power to be supplied to the electromagnet from the battery, and the drive control circuit further has a remaining battery capacity detection section detecting a remaining capacity of the battery; and characterised in that the electromagnet control section is configured to control the electric power to be supplied to the electromagnet on a basis of the remaining capacity of the battery detected by the remaining battery capacity detection section so that in a standby state, where the drilling machine is securely held in position for the drilling operation at a constant angle by the electromagnet and the motor is not driven, the electric power to be supplied to the electromagnet is kept substantially constant even when the remaining capacity of the battery has decreased.