Total hip replacement is a step-by-step surgery to replace the hip socket and the ball at the top of the thighbone (femur). Doctors use metal, ceramic, or plastic replacement parts. The parts may be attached to the bones in one of two ways. They may be: Cemented to the bone. Uncemented. These parts have a porous coating that the bone grows into.