Ilioinguinal nerve
The ilioinguinal nerve is a mixed nerve that originates from the ventral ramus of the first lumbar nerve (L1). It may also receive contributions from the ventral ramus of the twelfth thoracic nerve (T12) and sometimes from the ventral ramus of the second lumbar nerve (L2) or even the third lumbar nerve (L3). This nerve primarily provides sensory innervation to the skin of the upper medial thigh, external genitalia, and pubic region.