The invention provides a nail gun with stable nailing, which includes a casing, a trigger, a motor, a first cylinder, a second cylinder, a crank, a connecting rod, a nailing assembly and a nail feeding assembly, the second cylinder is located in the first cylinder, The first cylinder is equipped with a first piston, the second cylinder is equipped with a second piston, the connecting rod is connected to the first piston, and the motor is connected to the crank through the transmission mechanism and drives the first piston through the connecting rod in the first cylinder. Axial movement, the nailing assembly includes a striker, the striker is connected with the second piston, the upper end of the first cylinder is provided with a lock assembly that locks the second piston at a high point, the first piston is provided with an unlocking ejector rod, the first The piston moves upwards to drive the unlocking ejector to move upwards, and the unlocking ejector pushes the locking assembly to break away from the second piston, and the second piston moves downward under the air pressure to make the striker hit the gun nail, and the second piston is locked by the locking assembly The way of maintaining pressure can not only ensure a good nailing effect.