The invention discloses an electric locking and rotating joint for an auxiliary arm for surgical operation, which is characterized in that the electric locking and rotating joint comprises a joint rotating mechanism and a joint locking mechanism, the joint rotating mechanism is positioned at the upper part of the joint locking mechanism, wherein the joint rotating mechanism comprises a joint rotary shaft, a joint bearing cap, a joint bearing seat and a joint chassis, the joint locking mechanism comprises a locking outer sleeve, a friction ring, a trapezoidal nut, a lead screw shaft and a motor, an output shaft of the motor drives the lead screw shaft to move, the lead screw shaft drives the trapezoidal nut which is in threaded connection with the lead screw shaft to move, and the trapezoidal nut is circumferentially fixed by the locking outer sleeve arranged on the outside of the trapezoidal nut and can only move up and down, thereby driving the friction ring arranged at the upper part to move up and down; and friction force is produced when the friction ring is in contact with the joint chassis, the friction force is eliminated when the friction ring and the joint chassis are separated, and the joint rotary shaft is in threaded connection with the joint chassis, thereby realizing locking or unlocking of the joint rotary shaft. The electric locking and rotating joint has the advantages of compact structure, convenient operation and maintenance, reliable locking and unlocking and excellent performances.