The tibialis posterior acts to plantarflex the foot and invert the foot and support the medial arch. The muscles of the anterior compartment primarily antagonize the posterior compartment muscles. Collectively, the anterior muscles dorsiflex the foot at the ankle