The battle in which the Greeks defeated the Persians in 479 BC was the Battle of Plataea. It was the decisive land engagement of Xerxes I’s second invasion of Greece.
The battle took place near Plataea in Boeotia between an alliance of Greek city-states and the Achaemenid Persian Empire. The Greek army included major contingents from Sparta, Athens, Corinth, Tegea, Megara, and Plataea. The Persian forces were commanded by Mardonius, who had remained in Greece after Xerxes withdrew following the naval defeat at Salamis in 480 BC.
The battle followed a tense standoff near the Persian fortified camp. When the Greek line began withdrawing, Mardonius interpreted the movement as a rout and ordered a pursuit. The Spartans, Tegeans, and other Greek forces then turned and attacked. Mardonius was killed, the Persian army was defeated, and Persian control of central Greece collapsed.
Plataea is often confused with Salamis, another Greek victory during the same invasion. Salamis was a naval battle in 480 BC; Plataea was a land battle one year later. The Battle of Mycale, fought in the same broad period, also helped end the invasion.