How were the Greeks able to defeat the Persians?

The Greeks were able to defeat the Persians by using a combination of tactics. The Greeks used their superior naval forces to outmaneuver the Persians, and their superior infantry tactics to outfight them. The Greeks also used their knowledge of the terrain to their advantage, and their superior morale to inspire their troops. Finally, the Greeks were able to use the element of surprise to their advantage, launching surprise attacks on the Persians when they least expected it.