The Spartans lost, but dealt a big blow to Xerxes, showing their strength, boosting the morale of the Greeks, and giving the coalition time to save their fleet, which was victorious over the Persian fleet in the Straits of Salamina. The Persians had to withdraw from Attica, and the Greeks, under the command of the new Spartan king Pausanias, won a victory over the Persian commander Mardonius at the Battle of Plataea in Beotia.