Both the Spartans and the athenians
There were nearly 200 city-states who united to fight off the Persians.
A small force from Greek city-states led by Spartan King Leonidas fought the Persians .
The fleets of the invading Persians fought it out with the combined fleet of the defending southern Greek city-states.
The Persian Empire versus varying combinations of Greek city-states.
In the war settlement Persia agreed to stay away from the Greek city-states in Asia Minor and the Islands. After 65 years the Persians took them over again as the Greek city-states busily fought each other.
There was no city of Marathon. It was a plain 26 miles north of Athens.
Athens led 180 eastern Greek city-states against the Persians in the last 30 years of the 50-year Persian War.
There were about two hundred of them in Greece and Asia Minor.
The Trojan War took place in Greek Mythology during a time period where countries as they are known today did not exist. The war was fought between the city of Troy and the Achaens, who formed a collective of Greek city states. The city of Troy would have been located in modern-day Turkey.
The leader was called Leoleadre and they fought at Thermopylae
Control of the Greek city-states in Asia Minor - however they took them back 50 years later as the Greeks fought each other.
They bribed some of the Ionian city-states to desert the other cities in battle, leaving those who fought on isolated and in a minority.