A hip replacement is when a surgeon removes the damaged parts of the hip joint and replaces it with an artificial joint. There are several conditions which may damage the hip joint. These conditions include osteoarthritis, rheumatoid arthritis, and osteonecrosis.