A branch of the L1 spinal nerve, the ilioinguinal n. passes into the inguinal canal, through the superficial ring, and then innervates the skin of the upper and medial part of the thigh, the skin over the root of the penis and upper part of the scrotum in males (anterior scrotal n.), or the skin covering the mons pubis and labia majora in females (anterior labial n.).