An electric nail gun comprising: a main body unit; a muzzle unit; a hammer unit; a motor unit; and a control unit; wherein said main body unit defines an energy storage space and a passage that is in spatial communication with said energy storage space; said muzzle unit includes a muzzle that defines a nail-accommodating space, and a resilient member that is disposed in said passage, and that has two opposite ends respectively abutting against said muzzle and said main body unit, said nail-accommodating space being adapted for accommodating a nail, characterized in that said muzzle extends into said passage, and is movable relative to said main body unit between an activation position, in which said muzzle is distal from said energy storage space, and a cessation position, in which said muzzle is proximate to said energy storage space, said resilient member constantly providing a muzzle restoring force for said muzzle to move away from the cessation position; said hammer unit includes a hammer member that extends from said energy storage space through said passage into said nail-accommodating space, that is movable relative to said energy storage space, said passage, and said nail-accommodating space, and that is adapted for striking the nail, and a resilient member that has two opposite ends respectively abutting against said hammer member and said main body unit, said resilient member of said hammer unit constantly providing a hammer restoring force for said hammer member to move in a striking direction for striking the nail; said motor unit is mounted to said main body unit, and includes a lifting wheel that is rotatable about a rotation axis, and a motor module that is operable to urge said lifting wheel to rotate, said rotation axis being substantially orthogonal to the striking direction, said lifting wheel having at least one pushing portion that separably engages said hammer member, and that is operable to push said hammer member to move in an energy storage direction opposite to the striking direction such that said resilient member of said hammer unit is compressed and provides the hammer restoring force to said hammer member; and said control unit includes a trigger subunit that is mounted to said main body unit, a sensing subunit that is mounted to said main body unit and said muzzle, and a control subunit that is signally coupled to said motor module, said sensing subunit and said trigger subunit, said trigger subunit generating a trigger signal when being operated, said sensing subunit generating an activation signal when said muzzle is in the activation position, said control subunit activating said motor module when receiving said trigger signal and said activation signal. a main body unit; a muzzle unit; a hammer unit; a motor unit; and a control unit; wherein said main body unit defines an energy storage space and a passage that is in spatial communication with said energy storage space; said muzzle unit includes a muzzle that defines a nail-accommodating space, and a resilient member that is disposed in said passage, and that has two opposite ends respectively abutting against said muzzle and said main body unit, said nail-accommodating space being adapted for accommodating a nail, characterized in that said muzzle extends into said passage, and is movable relative to said main body unit between an activation position, in which said muzzle is distal from said energy storage space, and a cessation position, in which said muzzle is proximate to said energy storage space, said resilient member constantly providing a muzzle restoring force for said muzzle to move away from the cessation position; said hammer unit includes a hammer member that extends from said energy storage space through said passage into said nail-accommodating space, that is movable relative to said energy storage space, said passage, and said nail-accommodating space, and that is adapted for striking the nail, and a resilient member that has two opposite ends respectively abutting against said hammer member and said main body unit, said resilient member of said hammer unit constantly providing a hammer restoring force for said hammer member to move in a striking direction for striking the nail; said motor unit is mounted to said main body unit, and includes a lifting wheel that is rotatable about a rotation axis, and a motor module that is operable to urge said lifting wheel to rotate, said rotation axis being substantially orthogonal to the striking direction, said lifting wheel having at least one pushing portion that separably engages said hammer member, and that is operable to push said hammer member to move in an energy storage direction opposite to the striking direction such that said resilient member of said hammer unit is compressed and provides the hammer restoring force to said hammer member; and said control unit includes a trigger subunit that is mounted to said main body unit, a sensing subunit that is mounted to said main body unit and said muzzle, and a control subunit that is signally coupled to said motor module, said sensing subunit and said trigger subunit, said trigger subunit generating a trigger signal when being operated, said sensing subunit generating an activation signal when said muzzle is in the activation position, said control subunit activating said motor module when receiving said trigger signal and said activation signal.