Piriformis muscle

The piriformis is a muscle deep in the buttocks.  Its job is to rotate (think log roll) the leg outward.  It also helps to flex the hip.  The piriformis lies very close to the sciatic nerve.  When the piriformis is tight, it may put pressure on the sciatic nerve and cause some nerve pain.