Eventually the Macedonian horse were able to gain the advantage over their Persian counterpart, owing to the superiority of their lance over the Persian javelin for melee fighting, as well as the close support of the light infantry interspersed among their squadrons. The Greek cavalry then turned left and started rolling up the Persian cavalry, which was engaged with the left side of the Macedonian line after a general advance. A hole opened in the recently vacated place in the battle line, and the Macedonian infantry charged through to engage the poor-quality Persian infantry in the rear. The Macedonian phalanx then attacked the Greek mercenaries. With many of their leaders already dead, and their infantry routed, both flanks of the Persian cavalry retreated, seeing the collapse of the center. The infantry routed too, many being cut down as they fled.