A power tool, comprising: a tool main body comprising a first motor for outputting power to a tool attachment; and a dust collecting device comprising: a fan; a second motor for driving the fan to rotate so as to generate an absorbing force; a connecting assembly for detachably connecting the dust collecting device with the tool main body; and a dust collecting housing connected movably with the connecting assembly in a front and rear direction; wherein the second motor comprises: a stator; and a rotor; and wherein the dust collecting housing is formed with: a first containing chamber for containing the fan; and a second containing chamber for containing dust absorbed by the dust collecting device; characterized in that: said rotor is capable of rotating relative to the stator about a first axis substantially perpendicular to the front and rear direction; the tool main body comprises a tool housing comprising a main handle for a user to grip so as to operate the tool main body and an auxiliary handle comprising a clamping portion for clamping on the tool housing; wherein the auxiliary handle is detachably connected with the tool main body, and the connecting assembly is detachably connected with the auxiliary handle. a tool main body comprising a first motor for outputting power to a tool attachment; and a dust collecting device comprising: a fan; a second motor for driving the fan to rotate so as to generate an absorbing force; a connecting assembly for detachably connecting the dust collecting device with the tool main body; and a dust collecting housing connected movably with the connecting assembly in a front and rear direction; a fan; a second motor for driving the fan to rotate so as to generate an absorbing force; a connecting assembly for detachably connecting the dust collecting device with the tool main body; and a dust collecting housing connected movably with the connecting assembly in a front and rear direction; wherein the second motor comprises: a stator; and a rotor; and a stator; and a rotor; and wherein the dust collecting housing is formed with: a first containing chamber for containing the fan; and a second containing chamber for containing dust absorbed by the dust collecting device; characterized in that: said rotor is capable of rotating relative to the stator about a first axis substantially perpendicular to the front and rear direction; the tool main body comprises a tool housing comprising a main handle for a user to grip so as to operate the tool main body and an auxiliary handle comprising a clamping portion for clamping on the tool housing; wherein the auxiliary handle is detachably connected with the tool main body, and the connecting assembly is detachably connected with the auxiliary handle. a first containing chamber for containing the fan; and a second containing chamber for containing dust absorbed by the dust collecting device; characterized in that: said rotor is capable of rotating relative to the stator about a first axis substantially perpendicular to the front and rear direction; the tool main body comprises a tool housing comprising a main handle for a user to grip so as to operate the tool main body and an auxiliary handle comprising a clamping portion for clamping on the tool housing; wherein the auxiliary handle is detachably connected with the tool main body, and the connecting assembly is detachably connected with the auxiliary handle. said rotor is capable of rotating relative to the stator about a first axis substantially perpendicular to the front and rear direction; the tool main body comprises a tool housing comprising a main handle for a user to grip so as to operate the tool main body and an auxiliary handle comprising a clamping portion for clamping on the tool housing; wherein the auxiliary handle is detachably connected with the tool main body, and the connecting assembly is detachably connected with the auxiliary handle.