The feat of 300 Spartan warriors has become the plot of many books, movies, and even videogames. However, mass culture often tells us a twisted and tweaked version of real historical events. In the Battle of Thermopylae, 300 Spartan warriors with Leonid took place. But they were also supported by Greek warriors. So the Persians had to fight against a 5,000 to 7,000-soldier army.
However, the Spartans were really almost the only ones who fought to the end. And the Persian army was more than 20,000 men. So the Spartans were heroes anyway.