The hip joint joins the leg to the pelvis.