The pudendal nerve and internal pudendal vessels pass between the pelvic cavity and perineum by passing first through the greater sciatic foramen to enter the gluteal region and then immediately passing through the lesser sciatic foramen to enter the perineum. The nerve to the obturator internus and gemellus superior follows a similar course. Other nerves and vessels that pass through the greater sciatic foramen from the pelvic cavity supply structures in the gluteal region itself.