Described is a locking intramedullary nail for insertion in the medullary cavity of hollow bones for treating bone fractures or for joint stiffening. The nail comprises an oblong shaft having at least one holder for a locking screw. In the region of an opening a roller or ball-shaped sleeve having a bore for receiving the locking screw is arranged. The sleeve which is supported in the shaft in a freely pivotable manner can be locked in a positionally stable manner in the shaft. This affords the ability to introduce the locking screws during the implantation of the intramedullary nail at an optimum angle for the respective anatomical or pathological situation of the patient and to subsequently lock it permanently at a constant angle.