The knee is a hingelike joint, formed where the thighbone, shinbone, and kneecap meet. It is supported by muscles and ligaments and lined with cushioning cartilage. Over time, cartilage can wear away and the knee becomes stiff and painful.