A second major collection of muscle fibers, the puborectalis portion of the levator ani muscles, originates, in association with the pubococcygeus muscle, from the pubis and passes inferiorly on each side to form a sling around the terminal part of the gastrointestinal tract. This muscular sling maintains an angle or flexure, called the perineal flexure, at the anorectal junction. This angle functions as part of the mechanism that keeps the end of the gastrointestinal system closed.