anterior compartment of thigh anterior compartment of thigh the anterior compartment of thigh contains muscles which extend the knee and flex the hip. anterior compartment of thighcross-section through the middle of the thigh. (anterior compartment is at upper left, from the 7 o'clock position to the 2 o'clock position)detailsarteryfemoral arterynervefemoral nerveidentifierslatincompartimentum femoris anteriusta98a04.7.01.002ta22609fma45151anatomical terminology structure 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 muscle. the anterior compartment is separated from the posterior compartment by the lateral intermuscular septum and from the medial compartment by the medial intermuscular septum. anterior aspect of right leg. muscles of leg nerve supply the nerve of the anterior compartment of thigh is the femoral nerve. innervation for the quadriceps muscles come from the posterior division of the femoral nerve, while the anterior division (which contains cutaneous as well as muscular components) gives a lateral and a medial branch, the second being responsible for the innervation of the sartorius muscle. the iliacus and the psoas major and psoas minor muscles, sometimes considered part of the anterior compartment, do not share the same innervation. whereas the iliacus is innervated by the femoral nerve, the psoas is innervated by ventral rami of l1-l3. blood supply when the external iliac artery crosses the inguinal ligament, it becomes the femoral artery, which supplies blood to the anterior compartment and is the largest blood vessel of the inferior member. function cross-section of the upper right thigh. in this diagram, the anterior surface is at the bottom (labelled "a"). the anterior compartment is separated by a fibrous septum which is visible from the femoral artery and vein at the bottom, surrounding the sartorius muscle, and travelling to the profunda femoris artery adjacent to the femur (not labelled), from here to the sciatic nerve, and then between the vastus lateralis and biceps femoris muscles. the compartments on the left-hand side of the image are contained within the compartment. the anterior compartment of thigh contains muscles which are extensors of the knee and flexors of the hip joints. clinical significance the anterior compartment may be affected as part of a compartment syndrome.