The invention relates to a robot having a stereotactic function, belonging to the technical field of medical robots. The robot includes a body, the body has a working face thereon, a mechanical arm is provided on the working face, the mechanical arm is fixedly connected with a guiding means at one end away from the body, the mechanical arm has a first joint component and a second joint component, the first joint component is connected to the working face, the second joint component includes a second joint seat, a second joint shaft, and a second joint arm, an encoder and a clutch are provided on the second joint seat, the clutch controls the second joint shaft to rotate, the second joint shaft is sleeved with a torsion spring thereon assisting the second joint arm to rotate. In this technical solution, with the design of the torsion spring in the second joint component, when an operator rotates the second joint arm to adjust a spatial posture of the mechanical arm, the torsion spring can make a doctor's operation to be more laborsaving, thus reducing a load of the doctor in an operation process.