Things didn't end there. Xerxes and the Persian army managed to burn Athens and only after the naval battle of Salamis were defeated. Well, actually, after that, Athens was again conquered by the Persians under Mardonius. Only with the battle of Plataea (479 BC) they were expelled from Greece.
The Battle of Plataea is considered as the final major battle during the Persian invasion of Greece. It forms a part of the Persian invasion. So we can say that the Greeks actually defeated the Persians and repelled the invasion. Battle of Plataea was very devastating for the Persians... they lost more than 250,000 men.