In June 197 BC, Flamininus marched north from Elateia through Thermopylae. En route, he was joined by forces from Aetolia, Gortyn in Crete, Apollonia, and Athamania. Philip marched south into Thessaly and the two armies encamped opposite each other near Pherae. Both armies relocated to the hills around Scotussa. Contingents of the opposing armies came into contact with one another in the Cynoscephalae hills, leading to a full battle. In what proved to be the decisive engagement of the war, the legions of Flamininus defeated Philip's Macedonian phalanx. Philip himself fled on horseback, collected the survivors, and withdrew to Macedonia. Philip was forced to sue for peace on Roman terms.