The piriformis is a muscle which extends from the sacrum (the bottom of the back/top of hips) to the top of the femur (thigh bone) It extends across the sciatic nerve  which runs from the lower back  down the back of the leg  into the toes