Creating a "Shield-Ramp" against Heavy-Cavalry to close them in a Spear Wall... Any Historic Source?

by Radaistarion

In the third Hobbit movie there is this Battle of the Five Armies thing, in said battle there are many military tactics shown and used(Mostly in a very dumb way).

One in specific is the Elven Counter-Measure against the Dwarven "Cavalry"

I will not make you watch that horrible, irritating and unfaithful mess of scene so here is the specific moment

The Elves form a Shield-Ramp of some sort and the cavalry jumps to a closed field surrounded by a spear wall

Now, back when this came up i saw a certain comment that mentioned how a similar tactic was used by some army in real history...

Is that true? If so, by who and when?

I've been trying to find an answer to this for a while now but google(And my english skills) ain't helping much

PD: Dwarves never used cavalry nor machinery of any kind

ScorpionFloower

In the battle of Gaugamela, if I recall the name right, Alexandet the Great did something similar... Albeit Against chariots.

He was immensely outnumbered and many diverse tactics and ruses to win the day, one of which was to give a lot of space on his left most flank to bait out a full charge from the chariots of the enemy, which they did. However Alexander had trained his expert Sarissa men to counter the chariots. They let it charge inside the ranks by stepping aside and enclosing it kind of like in the movie while stopping it in a "cul-de-sac" with the sarissas. They then were easy picking.

That's the closest thing that came to my mind when I saw the scene.

PS: Do not get so mad at a high fantasy war scene, it's not made nor wanted to be historically realistic.