The Spartans at Thermopylae were all killed yes, but they succeeded in their goal, which was to inspire the rest of Greece to put aside their political differences and to stand together and fight, as well as to stall the Persian army while the major Greek powers rallied, and built up the defenses.