On foot, you have a great advantage over anything that the enemy throws at you, because you're able to carry a shield.
In formation, you're unstoppable, if you're a good general. No cavalry or archer is going to go through your girthy defense.
But the moment you decide to grab a horse, that's...