In 479 B.C., the last major battle of the war happened. Like many other battles, neither side attacked immediatlely. Although, in this battle, each side tried to sabbatoge each other, by doing things such as cut off resources. Athens and Greece came out 'winning' the war, but there was never a clear' surrender' from the Persian empire.
While the Persian empire was big, and they never 'technically' surrendered, they did still pose as a threat to the Greek city-states. Although, as result of the Persian war, they were no longer seen as 'unstoppable'.
The city-states created the Delian League. The purpose of the Delian League was to get revenge on Persia by driving Persians away from territory around Greece, elliminating the threat of future attack.