Knee replacement usually takes 1 to 2 hours. The surgeon removes damaged cartilage and bone from the knee. Then the doctor attaches metal implants to the ends of the thigh and calf bones. A plastic spacer goes between the metal pieces and helps the new joint move smoothly.