Total joint replacement involves surgery to replace the ends of both bones in a damaged joint to create new joint surfaces.

Total hip replacement surgery replaces the upper end of the thighbone (femur) with a metal ball and resurfaces the hip socket in the pelvic bone with a metal shell and plastic liner.

Total hip replacement surgery replaces damaged cartilage with new joint material in a step-by-step process.

via Hip Replacement Surgery: Procedure and Recovery.