A device for attaching a member that replaces a part of a set of teeth, wherein the device has a pin to be implanted in a jawbone and a coupling pin with a ball-and-socket joint disposed between the coupling pin and the implantation pin. The ball and/or the socket of the joint is made of