Interlocking nails are inserted into the intramedullary canal and act as an immobilization device to hold the ends of the fractured bone. The main function of intramedullary nailing is to help restore the shape of the fractured long bones to its natural, pre-injured state.