The Macedonian phalanx was impregnable from the front, but vulnerable from the sides and back, where it could be attacked by the enemy cavalry. Therefore, the system required protection, which it got from the Macedonian cavalry, which was the most flexible force.