Emerges from the greater sciatic foramen with the sciatic n., and provides sensory innervation to skin of the posterior thigh.