The phalanxes were a type of military formation used by the Ancient Greeks. They were groups of heavily armed soldiers who stood in close formation and fought as a unit. The phalanxes were used by the Spartans, as well as other Greek city-states, and were a major factor in the success of the Greek armies.