The invention discloses a nailing mechanism of a manipulator, comprising a fixed seat, a first driving device, a second driving device, a gripper, a nailing rod and a nailing head, the first driving device and the second driving device are both arranged on the fixing seat, The jaws are set under the fixing base, and the nailing head is set on the side of the fixing base and above the jaws. The first driving device drives the jaws to clamp or loosen the battery, and the second driving device drives the nailing rod through the nailing rod. The nail head nails the clamped battery. When nailing the lithium battery, first drive the jaws to clamp the lithium battery through the first driving device, and then drive the nailing rod through the second driving device so that the nailing head nails the lithium battery; after the nailing is completed Finally, the second driving device line drives the nailing rod back so that the nail head is prepared for nailing. At this time, the first driving device drives the jaws to release the lithium battery; The nail heads are relatively stationary, which makes the nailing effect of the lithium battery better.