The inferior gluteal nerve leaves the pelvis through the greater sciatic foramen .
The inferior gluteal nerve runs underneath the piriformis muscle .
The inferior gluteal nerve leaves the pelvis through the greater sciatic foramen and runs underneath the piriformis muscle .