The ilioinguinal nerve (IIN) typically emerges together with the iliohypogastric (IH) nerve from the lateral margin of the psoas major, descends laterally across the anterior side of the quadratus lumborum, pierces the posterior aponeurotic extension of the transversus abdominis, and runs medially together with the IH nerve sandwiched between the transversus abdominis and the internal oblique – first on top of the iliac crest, and then on top of the inguinal ligament
The IIN exits via the external inguinal ring and terminates as the anterior scrotal/labial branches
Together with the IH nerve the IIN innervates the inferior portions of the transversus abdominis and the internal oblique
The anterior scrotal branches innervate the skin proximal to the symphysis and the lateral parts of the male scrotum and the female labia majora

