The perineal nerve passes into the urogenital triangle and gives rise to motor and cutaneous branches. The motor branches supply skeletal muscles in the superficial and deep perineal pouches. The largest of the sensory branches is the posterior scrotal nerve in men and the posterior labial nerve in women.