Bone grafting is a surgical procedure that uses transplanted bone to repair and rebuild diseased or damaged bones. A bone graft is a good choice for repairing bones almost anywhere in your body. Your surgeon might take bone from your hips, legs, or ribs to perform the graft.