The hip joint connects the leg to the pelvis.