The posterior cutaneous nerve of the thigh has a number of gluteal branches, which loop around the lower margin of the gluteus maximus muscle to innervate skin over the gluteal fold. A small perineal branch passes medially to contribute to the innervation of the skin of the scrotum or labia majora in the perineum. The main trunk of the posterior cutaneous nerve of the thigh passes inferiorly, giving rise to branches that innervate the skin on the posterior thigh and leg.