However, on the third day, a local resident named Ephialtes betrayed the Greeks by revealing a hidden path around the pass to the Persians. The Persians exploited this weakness and attacked the Spartans from behind.