It then descends beneath the gluteus maximus with the inferior gluteal artery, and runs down the back of the thigh beneath the fascia lata, and over the long head of the biceps femoris to the back of the knee; here it pierces the deep fascia and accompanies the small saphenous vein to about the middle of the back of the leg, its terminal twigs communicating with the sural nerve.