The piriformis muscle passes out of the pelvis into the gluteal region through the greater sciatic foramen and separates the foramen into two parts, a part above the muscle and a part below:
The superior gluteal nerve and vessels pass through the greater sciatic foramen above the piriformis.