Bruce's army, like William Wallace's before him, was chiefly composed of infantry armed with 18-foot long pikes. It was divided into three main (infantry) battalions, and a fourth larger battalion commanded by the king himself serving as the reserve unit. The second battalion was commanded by Thomas Randolph, 1st Earl of Moray. The third was led by Edward Bruce, the king's brother. The fourth division was commanded by Sir James Douglas and his cousin Walter the Steward. The light cavalry of 500 strong was commanded by Robert Keith, Marischal of Scotland. Each infantry division formed into a Schiltron formation. Each man carried the pike upright and the outside ranks would lower theirs to form a lethal wall of sharp metal points. The schiltron could withstand an attack by knights on horses. But Bruce also trained them to attack.