The nerve to quadratus femoris & inferior gemellus is formed from the anterior (ventral) divisions of the L4, L5 & S1 nerve roots of the sacral plexus. The nerve supplies the quadratus femoris 7 inferior gemellus muscles as well as providing an articular branch to the hip joint.