Question: what is the function of the anterior compartment of the thigh?
Answer: The function of the anterior compartment of the thigh is to extend the leg at the knee joint. Three major muscles (actually, two muscles and one muscle group) comprise the anterior compartment of the thigh — the pectineus, sartorius and quadriceps femoris.