A branch of the sacral plexus (S2–S4). It leaves the pelvis through the greater sciatic foramen below piriformis, hooks round the ischial spine and sacrospinous ligament and re-enters the perineum through the lesser sciatic foramen, running in the pudendal (Alcock) canal on the lateral wall of the ischioanal fossa. It gives the inferior rectal nerve (external anal sphincter, perianal skin), the perineal nerve (perineal muscles, external urethral sphincter) and the dorsal nerve of the penis or clitoris. Pudendal block at the ischial spine is used in childbirth; stretching in difficult labour or compression in long-distance cycling causes perineal pain and numbness.