A pear-shaped muscle running from the front of the sacrum (between the second to fourth anterior sacral foramina) through the greater sciatic foramen to the upper border of the greater trochanter. It laterally rotates the extended thigh and abducts the flexed thigh. It is supplied by direct branches of the sacral plexus (S1, S2). It divides the greater sciatic foramen into a suprapiriform opening (superior gluteal nerve and vessels) and an infrapiriform opening (sciatic nerve, inferior gluteal nerve and vessels, pudendal nerve). In about 15% of people part of the sciatic nerve (usually the common fibular division) passes through the muscle; its spasm can cause buttock pain radiating down the leg (piriformis syndrome).