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 The gluteus maximus, which forms most of the muscle of the buttocks, originates primarily on the ilium and sacrum and inserts on the gluteal tuberosity of the femur as well as the iliotibial tract, a tract of strong fibrous tissue that runs along the lateral thigh to the tibia and fibula. The gluteus medius and gluteus minimus originate anterior to the gluteus maximus on the ilium and both insert on the greater trochanter of the femur. The tensor fasciae latae shares its origin with the gluteus maximus at the ilium and also shares the insertion at the iliotibial tract. The