On the third day, a local resident named Ephialtes betrayed the Spartans by revealing a hidden path to the Persians. The Spartans were surrounded, and Leonidas ordered most of his men to retreat. He and a small contingent of Spartans, including his bodyguards, fought to the death.