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
Muscles of the hip apart. Hip adduction occurs when the femur moves back to the midline. Many muscles contribute to these movements: Hips muscles also play a role in maintaining the standing posture. These muscles work in an integrated system with muscles of the shoulder, neck, core, lower leg, and supporting muscles of the spine, to provide the ability to stand with good posture. These muscles include the gluteus medius and gluteus minimus which abduct the thigh, prevent swaying of hips, stabilize pelvic region while keeping hips level, and shift an individual’s weight in order to adjust body placement to increase one's overall body