Cannae played a major role in shaping the military structure and tactical organization of the Roman Republican army. At Cannae, the Roman infantry assumed a formation similar to the Greek phalanx. This left them vulnerable to Hannibal's tactic of double envelopment since their inability to maneuver independently from the mass of the army made it impossible for them to counter the strategic encirclement used by the Carthaginian cavalry. The laws of the Roman state requiring command to alternate between the two consuls restricted strategic consistency.