Intramedullary nailing is primarily indicated for long bone fractures, particularly those that are difficult to stabilize with external fixation or casting. It is also used in cases of osteoporotic fractures, pathologic fractures, and sometimes for corrective osteotomies or to treat bone deformities.