Muscles in the leg are divided into lateral (fibular), anterior, and posterior compartments:
Muscles in the lateral compartment predominantly evert the foot.
Muscles in the anterior compartment dorsiflex the foot and extend the digits.
Muscles in the posterior compartment plantarflex the foot and flex the digits; one of the muscles can also flex the knee because it attaches superiorly to the femur.
Specific muscles in each of the three compartments in the leg also provide dynamic support for the arches of the foot.