The Macedonian phalanx now was used to pin the centre of the enemy line, while cavalry and more mobile infantry struck at the foe's flanks. Its supremacy over the more static armies fielded by the Greek city-states was shown at the Battle of Chaeronea, where Philip II's army crushed the allied Theban and Athenian phalanxes.