The main part was 480-479 BCE, though there were later engagements at Eurymedon 466 BCE and an uncertain one in 449, when the Peace of Callias was signed putting an end to direct conflict.
The Greeks managed to lure the Persians into the narrow strait of Salamis. Then Athenian warships, powered by rowers drove into the Persian boats with underwater battering rams
The Greeks and Persians have always been at war. Their cultures are so different, that they grate on the other like rubbing sandpaper together. Both were immensly rich. Imagine 2 fruits with arms...