The sacral plexus on each side is formed by the anterior rami of S1 to S4, and the lumbosacral trunk (L4 and L5) (Fig. 5.61). The plexus is formed in relation to the anterior surface of the piriformis muscle, which is part of the posterolateral pelvic wall. Sacral contributions to the plexus pass out of the anterior sacral foramina and course laterally and inferiorly on the pelvic wall. The lumbosacral trunk, consisting of part of the anterior ramus of L4 and all of the anterior ramus of L5, courses vertically into the pelvic cavity from the abdomen by passing immediately anterior to the sacro-iliac joint.