The superior gluteal n. passes from the pelvis into the gluteal region, emerging just superior to the piriformis m., and provides motor innervation to the gluteus medius m. and gluteus maximus m.