Anterior compartment of thigh Anterior compartment of thigh The anterior compartment of thigh contains muscles which extend the knee and flex the hip. The anterior compartment is one of the fascial compartments of the thigh that contains groups of muscles together with their nerves and blood supply. The anterior compartment contains the sartorius muscle (the longest muscle in the body) and the quadriceps femoris group, which consists of the rectus femoris muscle and the three vasti muscles – the vastus lateralis, vastus intermedius, and the vastus medialis. The iliopsoas is sometimes considered a member of the anterior compartment muscles, as is the articularis genus
Posterior cutaneous nerve of thigh 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. Its branches are all cutaneous, and are distributed to the gluteal region, the perineum, and the back of the thigh and leg. Posterior cutaneous nerve of thigh The posterior cutaneous nerve of the thigh (also called the