The piriformis is a small muscle at the back of the hip that lies beneath the glute muscles. The sciatic nerve, which travels from the lower back down each leg, often lies directly under the piriformis. When the piriformis muscle gets tight or irritated, it can compress the underlying sciatic nerve, leading to piriformis syndrome.