Inferior gluteal nerve

The inferior gluteal nerve is a nerve in the pelvis that innervates the gluteus maximus muscle.

Structure
The inferior gluteal nerve originates in the sacral plexus. It arises from the dorsal divisions of the fifth lumbar and first and second sacral nerves: it leaves the pelvis through the greater sciatic foramen, below the piriformis, and divides into branches which enter the deep surface of the gluteus maximus, And is the principle extensor of the thigh.