It passes down on the sacral plexus of nerves and the piriformis muscle, behind the internal pudendal artery, to the lower part of the greater sciatic foramen, through which it escapes from the pelvis between the piriformis and coccygeus.
12.
The muscle passes out of the pelvis through the greater sciatic foramen, the upper part of which it fills, and is inserted by a rounded tendon into the upper border of the greater trochanter behind, but often partly blended with, the common tendon of the obturator internus and superior and inferior gemellus muscles.
13.
It arises from the front of the sacrum by three fleshy digitations, attached to the portions of bone between the first, second, third, and fourth anterior sacral foramina, and to the grooves leading from the foramina : a few fibers also arise from the margin of the greater sciatic foramen, and from the anterior surface of the sacrotuberous ligament.