Ancient Indian armies were used elephants extensively in combat until the Turk Mongolic cavalry made it obsolete.
The battle formations would usually involve a elephant with 3 to 5 riders.
1 mahout, rest combination of spearmen and archers.
Elephant were given protective cover around its body...